:root {
  --acid: #cd461a;
  --paper: #181818;
  --edge: #d7d1c5;
  --dark: #f6f3ec;
  --surface: #f0ece3;
  --tag: #eae5da;
}
.signal p, .case p, .caption, .preview span, .signal small, .case small,
.signal .stats small, .identity > p:first-child, .workbench button,
.record dt, .gallery-head span, .case figcaption, .flow-list { color: #555; }
.download, .worklink, .choices button[aria-pressed=true],
.shot-nav button[aria-pressed=true], .asset-panel {
  background: var(--acid);
  color: white;
}
.asset-panel p, .asset-panel dl { color: white; }
.asset-panel dl div { border-color: #ffffff70; }
.asset-panel strong { font-family: Helvetica, Arial, sans-serif; }
.mat { background: var(--surface); }
.mat a { border-color: #252525; box-shadow: 7px 8px 0 var(--acid); }
.choices button, .shot-nav button, .signal .tags span, .case .tags span,
.skill-row li { background: var(--tag); color: #282828; border-color: #c8c8c8; }
.preview, .preview img, .case .facts, .record, .case figure img { background: var(--surface); }
.signal .demo-label small, .crumb, .case-intro > p:first-child,
.case .narrative h2, .case figcaption a, .case-pager { color: var(--acid); }
.case .case-intro h1, .case h2, .case figcaption b, .evidence-links a { color: var(--paper); }
.record { border-top-color: var(--acid); }
.narrative section, .tool-list li, .case #evidence, .case figure img,
.case-pager, .record a { border-color: var(--edge); }
.case button:focus-visible, .case a:focus-visible, a:focus-visible { outline-color: var(--acid); }

.workbench .preview {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--panel-inset);
  background: var(--dark);
  text-decoration: none;
}
.workbench .preview img {
  width: 100%;
  height: auto;
  max-height: none;
  border: 1px solid #dededb;
  border-radius: 4px;
  background: white;
}
:root {
  --type-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --type-latin: "Helvetica Neue", Arial, var(--type-body);
}
body { font-family: var(--type-body); line-height: 1.7; }
.signal .identity h1, .case .case-intro h1 {
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.045em;
}
.identity h1 > span {
  font-family: var(--type-latin);
  font-size: clamp(58px, 7vw, 108px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.06em;
}
.monogram, .signal .stats strong, .asset-panel strong, .cert-band b {
  font-family: var(--type-latin);
  font-weight: 600;
  letter-spacing: -.045em;
  font-variant-numeric: lining-nums tabular-nums;
}
.signal section h2, .case h2 { font-weight: 650; line-height: 1.25; letter-spacing: -.035em; }
.summary h3, .skill-row h3, .list h3 { font-weight: 600; letter-spacing: -.015em; }
.identity .thesis, .summary p, .list p, .case .abstract, .narrative p { line-height: 1.85; }
.choices button, .workbench button, .signal .stats em { font-family: var(--type-body); }
.rail b, .workbench button b, .demo-label small { font-family: var(--type-latin); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .identity h1 > span { font-size: clamp(42px, 11vw, 60px); }
}

.mast b, .case .brand, .case .brand span { font-family: var(--type-latin); letter-spacing: -.02em; }
.case .brand { font-weight: 650; }
.rail nav a, .mast a, .case header nav a, .case-pager a, .shot-nav button {
  font-family: var(--type-body);
  font-weight: 500;
}
.workbench button { font-weight: 500; line-height: 1.45; }
.workbench button[aria-selected=true], .shot-nav button[aria-pressed=true] { font-weight: 650; }
.skill-row li, .signal .tags span, .tool-list li {
  font-family: var(--type-latin);
  font-weight: 450;
  line-height: 1.55;
}
.skill-row li { font-size: 15px; }
.cert-band b { font-size: 26px; }
.cert-band span, .asset-panel dl, .record dd { font-size: 15px; line-height: 1.7; }
.asset-panel dd, .list small { font-family: var(--type-latin); font-variant-numeric: tabular-nums; }
.list small, .record dt, .crumb, .case figcaption, .caption, footer { font-size: 13px; line-height: 1.65; }
.record h3, .cert-band h3, .asset-panel h3 { font-weight: 600; }
.flow-list { line-height: 1.85; }

@media (min-width: 761px) {
  .signal { --rail-width: clamp(90px, 7.2vw, 104px); }
  .rail { width: var(--rail-width); padding-inline: 12px; align-items: stretch; }
  .monogram { align-self: flex-start; }
  .signal main, .signal footer { margin-left: calc(var(--rail-width) + 2.5vw); }
  .rail nav { gap: 0; width: 100%; }
  .rail nav a {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 7px;
    padding-block: 12px;
    border-top: 1px solid var(--edge);
    font-size: 17px;
    font-weight: 550;
    letter-spacing: -.01em;
    line-height: 1.25;
    white-space: nowrap;
  }
  .rail nav a:last-child { border-bottom: 1px solid var(--edge); }
  .rail nav b { font-size: 12px; letter-spacing: 0; color: #656565; }
  .rail nav a:is([aria-current], :hover, :focus-visible) { color: var(--acid); text-decoration: none; }
  .rail nav a[aria-current] { border-top-color: currentColor; }
}

.workbench { --panel-inset: clamp(18px, 2vw, 30px); }
.workbench .summary { align-self: start; padding: var(--panel-inset); }
.summary h3 {
  font-size: clamp(23px, 1.9vw, 30px);
  line-height: 1.28;
  letter-spacing: -.035em;
  margin: 0 0 10px;
}
.summary small { display: block; margin-bottom: 7px; }
.summary > p { font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.project-keywords {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 12px 0 20px;
}
.project-keywords li {
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--tag);
  color: #504d47;
  font-size: 13px;
  line-height: 1.65;
}
.project-role { padding-top: 14px; border-top: 1px solid var(--edge); }
.project-role h4 { margin: 0 0 5px; padding: 0; border: 0; color: var(--paper); font-size: 16px; font-weight: 600; }
.project-role p { font-size: 15px; line-height: 1.75; }
.summary .project-action {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 8px 15px;
  margin-top: 18px;
  border-radius: 4px;
  background: var(--acid);
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.project-action:hover, .project-action:focus-visible { background: #ac3510; }
.workbench .preview { align-self: start; }
.workbench .preview:hover img, .workbench .preview:focus-visible img { border-color: var(--acid); }

.career-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.career-list > li {
  padding: clamp(16px, 1.6vw, 24px);
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: #faf8f2;
}
.career-period { margin-bottom: 8px; color: #696157; font: 500 13px/1.5 var(--type-latin); font-variant-numeric: tabular-nums; }
.career-list h3 { font-size: clamp(18px, 1.45vw, 22px); font-weight: 600; line-height: 1.35; }
.career-list p { font-size: 15px; line-height: 1.65; }
.career-list h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.career-sector { border-inline-start: 1px solid #b9b2a6; padding-inline-start: 12px; color: #645e54; font-size: 14px; font-weight: 500; }
.career-works { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
.career-works a { color: var(--acid); font-size: 14px; }
@media (max-width: 700px) {
  .career-list { grid-template-columns: 1fr; gap: 9px; }
}

footer.contact-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px clamp(28px, 6vw, 88px);
  margin-top: 32px;
  padding: clamp(24px, 3vw, 42px) 0 20px;
  border-top: 1px solid var(--edge);
}
.contact-footer h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 40px); line-height: 1.25; letter-spacing: -.035em; color: var(--paper); }
.contact-footer p { font-size: 16px; line-height: 1.8; }
.contact-footer .contact-email { display: inline-block; white-space: nowrap; color: var(--acid); font-size: inherit; font-weight: 550; text-decoration: none; }
.contact-footer .contact-email:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-footer .footer-resume { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; align-self: center; justify-self: end; width: min(100%, 300px); padding: 18px 22px; box-sizing: border-box; background: #eae6dd; color: var(--paper); text-decoration: none; }
.resume-sheet { display: block; width: 46px; height: 60px; padding: 7px; box-sizing: border-box; background: linear-gradient(var(--acid),var(--acid)) 7px 43px / 22px 2px no-repeat, #fffcf7; box-shadow: 0 1px 3px #36260d24; font: 700 17px/1.2 Arial,sans-serif; letter-spacing: -.06em; transform: rotate(-4deg); }
.resume-sheet span,.resume-arrow { color: var(--acid); }
.footer-resume strong,.footer-resume small { display: block; }
.footer-resume strong { font-size: 18px; }
.footer-resume small { margin-top: 4px; color: #645e54; font-size: 12px; }
.resume-arrow { font-size: 22px; }
.contact-footer .footer-resume:hover { background: #e4ded3; }
.footer-signature {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  border-top: 1px solid var(--edge);
  padding-top: 18px;
  color: #645e54;
  font-size: 13px;
  line-height: 1.6;
}
.contact-footer .footer-signature a { color: inherit; text-decoration: none; }
.contact-footer .footer-signature a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
.footer-filing { margin-inline-start: auto; white-space: nowrap; }
@media (max-width: 680px) {
  footer.contact-footer { grid-template-columns: 1fr; gap: 18px; }
  .contact-footer .footer-resume { justify-self: start; width: 100%; }
}

.signal .portfolio-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--edge);
  background: var(--dark);
}
.header-inner, .signal main, .signal footer {
  width: min(1280px, 91%);
  margin-inline: auto;
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content auto;
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
  padding-block: 14px;
}
.header-brand { display: grid; grid-template-columns: auto auto; justify-self: start; gap: 3px 10px; }
.brand-avatar {
  grid-row: 1 / 3;
  align-self: center;
  width: clamp(40px, 4.5vw, 50px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e8e3da url("../images/roy-avatar.jpg") center / cover no-repeat;
}
.header-brand:hover { text-decoration: none; }
.header-brand strong { font: 700 29px/1 var(--type-latin); letter-spacing: -.06em; }
.header-brand strong span { color: var(--acid); }
.signal .header-brand small { font: 500 11px/1.3 var(--type-body); color: #635c52; letter-spacing: .07em; }
.header-nav, .header-actions { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); font-size: 14px; }
.header-nav a { padding: 8px 0 6px; border-bottom: 2px solid transparent; }
.header-nav a[aria-current] { border-color: var(--acid); }
.header-actions { justify-self: end; gap: 16px; }
.header-actions a { white-space: nowrap; }
.header-download { padding: 9px 16px; border-radius: 24px; background: var(--paper); color: var(--dark); }
.header-download:hover, .header-download:focus-visible { background: var(--acid); color: white; }
.signal main section[id] {
  --section-inset: 38px;
  scroll-margin-top: calc(var(--header-height, 76px) + 12px - var(--section-inset));
}
@media (max-width: 640px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0 2px; }
  .header-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-end; gap: 24px; }
  .header-actions { grid-row: 1; grid-column: 2; gap: 12px; }

}

.identity > .hero-byline:first-child {
  font: 400 15px/1.6 var(--type-body);
  color: #58534b;
}
.hero-byline strong { font-size: 17px; font-weight: 600; color: var(--paper); }
.keep-term { white-space: nowrap; }
.signal .identity .hero-question {
  letter-spacing: -.02em;
  display: block;
  margin: 14px 0;
  font-size: clamp(36px, 4.4vw, 66px);
  line-height: 1.15;
}
.identity .hero-question em {
  color: var(--acid);
  font: inherit;
}

.signal .stats { padding-block: clamp(16px, 1.6vw, 24px); }
.signal .stats strong { font-size: clamp(40px, 3.8vw, 54px); line-height: 1.04; }
.signal .stats em { font-size: 16px; }
.signal .stats b { margin-top: 6px; font-size: 17px; line-height: 1.45; }
.signal .stats small { font-size: 14px; line-height: 1.55; }
@media (max-width: 760px) {
  .signal .stats strong { font-size: clamp(30px, 7vw, 36px); }
  .signal .stats em, .signal .stats b { font-size: 13px; }
  .signal .stats a {
    padding-inline: 4px;
    text-align: center;
    align-content: start;
  }
  .signal .stats a + a { border-inline-start: 1px solid #c9c1b5; }
  .signal .stats b { text-wrap: balance; }
}

@media (min-width: 761px) {
  .asset-panel { align-self: stretch; display: flex; flex-direction: column; }
  .asset-panel dl { flex: 1; display: grid; grid-template-rows: repeat(3, 1fr); }
  .asset-panel dl div { align-items: center; }
}
.tab-short { display: none; }
.choices button { min-height: 44px; }
@media (max-width: 900px) {
  .workbench [role=tablist] { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .workbench [role=tab] { min-height: 44px; padding: 8px; text-align: center; }
  .workbench [role=tab] b, .tab-title { display: none; }
  .tab-short { display: inline; }
}

@media (max-width: 760px) {
  .workbench { --panel-inset: 12px; }
  .workbench [role=tablist] {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding-inline: 4px;
  }
  .workbench [role=tab] {
    flex: 1 1 auto;
    min-width: 44px;
    white-space: nowrap;
    border: 0;
    padding: 0;
    text-align: center;
    font-size: 14px;
  }
  .workbench .tab-short {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    box-shadow: inset 0 -2px transparent;
  }
  .workbench [aria-selected="true"] .tab-short {
    box-shadow: inset 0 -2px var(--acid);
  }
  .career-list p { font-size: 16px; }
  .workbench .summary p { font-size: 16px; line-height: 1.75; }
  .workbench .tags span { font-size: 12px; padding: 2px 6px; }
  .workbench .preview { padding: 6px; }
}


@media (max-width: 760px) {
  .demo-panel .choices, .demo-panel .caption span { display: none; }
  .demo-panel .caption { justify-content: flex-end; }
}

@media (max-width: 640px) {
  .header-nav { justify-content: space-between; gap: 0; }
  .header-nav a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; }
}

@media (max-width: 760px) {
  html.portfolio-home { scroll-behavior: auto; }
  .signal main section[id] { --section-inset: 26px; }
}
.signal .mat img { height: auto; }
@media (min-width: 761px) {
  .signal #experience { padding-bottom: 0; }
  .signal footer.contact-footer { margin-top: 32px; }
}

.header-nav a, .workbench [role="tab"], .shot-nav button {
  -webkit-tap-highlight-color: transparent;
}
.header-nav a:is(:hover, :active) { color: var(--acid); text-decoration: none; }

.signal :is(#skills, #experience) { border-top: 0; }

.caption a, .workbench [role="tab"][aria-selected="true"] b { color: #a93916; }

@media (max-width: 760px) {
  #works > .workbench { border: 0; }
  #works .workbench [role=tablist] { margin-bottom: 14px; }
  #works .workbench [role=tabpanel]:not([hidden]) {
    border: 1px solid #d8d0c3;
    border-radius: 10px;
    background: #fbf8f2;
  }
  #works .workbench .preview { border-radius: 0 0 9px 9px; }
}

/* Text on the portfolio's light reading surfaces. */
:root {
  --heading-ink: #39352f;
  --reading-ink: #5c574f;
}
.signal main :is(h2, h3, h4):not(.asset-panel *),
.signal .identity h1,
.contact-footer h2,
.bid-case .bid-notes h2,
.bid-case .gallery-head h2,
.bid-case .bid-delivery h2 { color: var(--heading-ink); }

.signal :is(.identity, .project-role, .career-list) p,
.bid-case .case-intro .abstract,
.bid-case .bid-notes p,
.bid-case .bid-profile dd,
.contact-footer > div > p { color: var(--reading-ink); }

#works .summary h3,
.signal .demo-label b,
.signal .stats b { color: #544e46; }

.opening .worklink,
.demo-panel .caption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
}
.demo-panel .caption { padding-block: 0; }
