/* Theme: edit these variables to make this portfolio your own. */
:root {
  --paper: #f7f5f1;
  --ink: #202020;
  --orange: #e9633f;
  --orange-dark: #a33a20;
  --stone: #aaa9a5;
  --muted: #73736f;
  --line: #d7d4ce;
  --display: 'Barlow Condensed',Impact,'Arial Narrow',sans-serif;
  --body: 'Manrope',Arial,sans-serif;
  --max: 1440px;
  --radius: 18px
}

*,*::before,*::after {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased
}

body.dialog-open {
  overflow: hidden
}

button,a {
  -webkit-tap-highlight-color: transparent
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font: inherit;
  color: inherit
}

button,a {
  touch-action: manipulation
}

button {
  cursor: pointer
}

img {
  display: block;
  max-width: 100%
}

button:focus-visible,a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 6px
}

::selection {
  background: var(--orange);
  color: var(--ink)
}

h1,h2,h3,h4,p {
  margin: 0
}

h1,h2,h3,h4 {
  line-height: 1
}

h1,h2,.project-title,.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.015em
}

h2 {
  font-size: clamp(50px,6vw,88px);
  line-height: .96
}

.site-wrap {
  max-width: var(--max);
  margin: auto;
  padding: 16px
}

.section {
  padding: 90px 64px
}

.skip-link {
  position: fixed;
  left: 20px;
  top: 16px;
  padding: 12px 20px;
  z-index: 100;
  background: var(--orange);
  color: #202020;
  transform: translateY(-150%)
}

.skip-link:focus {
  transform: translateY(0)
}

.orange {
  color: var(--orange)
}

.muted {
  color: #85857f
}

.muted-dark {
  color: #92938f
}

.eyebrow {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px
}

.eyebrow.light {
  color: #f1efe9
}

.dot {
  height: 5px;
  width: 5px;
  background: var(--orange);
  flex: none
}

.ring {
  border: 1.6px solid var(--orange);
  height: 10px;
  width: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: none
}

.micro {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em
}

.section-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 42px
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 45px;
  align-items: end;
  margin-bottom: 56px
}

.section-heading>p {
  max-width: 315px;
  font-size: 13px;
  color: #646560;
  line-height: 1.8;
  padding-bottom: 5px
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .025em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background .2s,transform .2s
}

.button-orange {
  background: var(--orange);
  color: var(--ink)
}

.button-orange:hover {
  background: #fa7955;
  transform: translateY(-2px)
}

.button span {
  font-size: 19px;
  font-weight: 400
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  transition: color .2s
}

.text-link:hover {
  color: var(--orange-dark)
}

.text-link span {
  font-size: 18px;
  font-weight: 400
}

.light-link:hover {
  color: #ff9f7b
}

.body-copy {
  font-size: 14px;
  line-height: 1.9;
  color: #646560
}

.body-copy p+p {
  margin-top: 18px
}

/* Hero */
.hero {
  position: relative;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 64px
}

.site-header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #ffffff18
}

.wordmark {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: 1
}

.wordmark .orange {
  font-size: 42px;
  margin-left: 2px;
  line-height: .5
}

.main-nav {
  display: flex;
  gap: 32px
}

.main-nav a,.header-contact {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase
}

.main-nav a {
  color: #c8c9c3;
  transition: color .2s
}

.main-nav a:hover {
  color: var(--orange)
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #686964;
  border-radius: 2px;
  padding: 10px 15px
}

.header-contact span {
  color: var(--orange);
  font-size: 21px
}

.menu-toggle {
  display: none
}

.hero-main {
  position: relative;
  min-height: 495px;
  padding-top: 66px
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 60%;
  padding-bottom: 45px
}

.hero-copy .eyebrow {
  font-size: 10px;
  letter-spacing: .075em;
  color: #ed8c6b;
  margin-bottom: 20px
}

h1 {
  font-size: clamp(60px,7.2vw,104px);
  line-height: .92;
  font-weight: 700;
  letter-spacing: -.018em
}

h1>span {
  display: block;
  white-space: nowrap
}

.hero-intro {
  max-width: 370px;
  color: #c5c6c0;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 23px
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 28px
}

.hero-actions .text-link {
  font-size: 10px;
  gap: 14px
}

.hero-art {
  position: absolute;
  right: -22px;
  bottom: 0;
  width: 49%;
  height: 105%;
  z-index: 1;
  isolation: isolate;
  pointer-events: none
}

.portrait-orbit {
  position: absolute;
  aspect-ratio: 1;
  left: 1%;
  right: -1%;
  top: 16%;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(circle at 35% 20%,#ed7c50,var(--orange) 43%,#8f3927 92%)
}

.hero-art img {
  -webkit-mask-image: linear-gradient(to bottom,#000 88%,transparent 100%);
  mask-image: linear-gradient(to bottom,#000 88%,transparent 100%);
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: bottom center;
  bottom: 0;
  filter: drop-shadow(0 12px 20px #0003)
}

.art-caption {
  position: absolute;
  right: 0;
  top: 8%;
  font-family: monospace;
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: .05em;
  color: #b1b1a9
}

.hero-bottom {
  position: relative;
  z-index: 3;
  padding-top: 4px
}

.hero-bottom>p {
  font-family: var(--display);
  font-size: clamp(65px,13.55vw,191px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: .94;
  white-space: nowrap;
  border-bottom: 1px solid #ffffff35;
  padding-bottom: 15px
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c5c6c0
}

.hero-meta a {
  display: flex;
  gap: 12px
}

/* True three-face CSS project boxes. The whole box is a native button. */
.work-section {
  padding-bottom: 60px
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 66px;
  align-items: start;
  padding: 10px 24px 30px 0
}

.project-item {
  min-width: 0;
  perspective: 1400px
}

.project-box {
  display: block;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 375px;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  outline-offset: 20px!important;
  --rx: 7deg;
  --ry: -13deg;
  --lift: 0px;
  --face: #e9633f;
  --side: #ac472b;
  --top: #f4805d;
  --text: #202020
}

.project-box[data-tone="stone"] {
  --face: #d9d8d1;
  --side: #989a92;
  --top: #edede6
}

.box-shell {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .32s ease;
  will-change: transform
}

.box-front {
  position: absolute;
  inset: 0;
  transform: translateZ(30px);
  background: var(--face);
  color: var(--text);
  border: 1px solid #20202065;
  display: flex;
  flex-direction: column;
  padding: 25px 28px;
  backface-visibility: hidden;
  overflow: hidden
}

.box-top {
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  height: 60px;
  background: var(--top);
  transform: rotateX(90deg);
  transform-origin: center;
  box-shadow: inset 0 0 0 1px #20202030
}

.box-side {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -30px;
  width: 60px;
  background: var(--side);
  transform: rotateY(90deg);
  transform-origin: center;
  box-shadow: inset 0 0 0 1px #20202030;
  display: flex;
  align-items: center;
  justify-content: center
}

.box-side span {
  writing-mode: vertical-rl;
  font-size: 8px;
  letter-spacing: .2em;
  font-weight: 800;
  color: #202020b3;
  white-space: nowrap
}

.project-shadow {
  position: absolute;
  height: 34px;
  width: 85%;
  bottom: -28px;
  left: 11%;
  border-radius: 50%;
  background: #20202035;
  filter: blur(17px);
  z-index: -1;
  transition: opacity .3s
}

.box-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase
}

.project-number {
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: 0
}

.project-title {
  display: block;
  font-size: clamp(32px,3.2vw,45px);
  line-height: .95;
  text-transform: uppercase;
  max-width: 95%;
  margin-top: 18px
}

.project-subtitle {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-top: 9px;
  line-height: 1.6;
  max-width: 90%
}

.project-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 18px;
  flex: 1;
  min-height: 60px
}

.mini-window {
  width: 92px;
  height: 67px;
  border: 1px solid #20202080;
  border-radius: 4px;
  position: relative;
  background: #f7f5f122;
  padding: 22px 9px 8px
}

.window-dots {
  position: absolute;
  left: 8px;
  top: 5px;
  letter-spacing: 2px;
  font-size: 8px;
  font-family: Arial
}

.mini-window::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  height: 1px;
  background: #20202060
}

.window-search {
  border: 1px solid #20202070;
  border-radius: 2px;
  height: 15px;
  margin-top: 4px;
  position: relative
}

.window-search::after {
  content: '⌕';
  position: absolute;
  right: 4px;
  top: -7px;
  font-size: 19px
}

.window-lines {
  display: block;
  border-top: 3px solid #20202065;
  border-bottom: 3px solid #20202040;
  height: 17px;
  margin-top: 3px
}

.glyph-arrow {
  font-size: 21px
}

.glyph-result {
  font-family: var(--display);
  font-size: 35px;
  line-height: 1
}

.glyph-result small {
  display: block;
  font-family: var(--body);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
  margin-top: 6px
}

.glyph-checks {
  font-size: 22px;
  letter-spacing: 2px;
  font-weight: 800
}

.box-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #20202055;
  padding-top: 13px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase
}

.box-open-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #20202070;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 400;
  transition: background .2s,color .2s
}

.project-box:hover,.project-box:focus-visible {
  --lift: -9px;
  --rx: 4deg;
  --ry: -10deg
}

.project-box:hover .box-open-icon {
  background: var(--ink);
  color: var(--paper)
}

.project-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 0;
  font-size: 10px;
  color: #666963
}

.project-caption span:first-child {
  font-weight: 700;
  color: var(--ink)
}

.section-footnote {
  font-size: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #73736f;
  margin-top: 25px
}

.tiny-cross {
  color: var(--orange-dark);
  font-size: 18px
}

/* About and expertise */
.about-section {
  border-top: 1px solid var(--line)
}

.about-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 100px;
  align-items: center
}

.about-photo-wrap {
  position: relative;
  margin: 4px 0 18px 10px
}

.about-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 16px 16px -16px -16px;
  border: 1px solid var(--line);
  z-index: -1
}

.about-photo-wrap img {
  width: 100%;
  height: 510px;
  object-fit: cover;
  object-position: 51% 27%;
  filter: saturate(.8)
}

.photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #202020ec;
  color: var(--paper);
  padding: 13px 18px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: .12em;
  font-weight: 700
}

.photo-label span {
  color: var(--orange)
}

.about-copy>.eyebrow {
  font-size: 9px;
  margin-bottom: 14px;
  color: var(--orange-dark)
}

.about-copy h2 {
  font-size: clamp(47px,5vw,68px);
  margin-bottom: 22px;
  max-width: 490px
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin: 28px 0
}

.about-facts>div {
  border-top: 1px solid var(--line);
  padding-top: 12px
}

.about-facts dt {
  font-size: 9px;
  color: #73736f;
  text-transform: uppercase;
  letter-spacing: .07em
}

.about-facts dd {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5
}

.expertise-section,.process-section {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius)
}

.expertise-section .micro,.process-section .micro {
  color: #a3a59d
}

.expertise-section .section-heading>p {
  color: #b5b7af
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px 65px;
  margin-top: 40px
}

.skill-group {
  padding-top: 22px;
  border-top: 1px solid #ffffff30
}

.skill-title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  display: flex;
  gap: 13px;
  align-items: center;
  text-transform: uppercase
}

.skill-title>span {
  color: var(--orange);
  font-family: var(--body);
  font-size: 9px;
  font-weight: 700
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0
}

.skill-tags li {
  border: 1px solid #ffffff30;
  color: #d2d4cc;
  padding: 5px 10px;
  font-size: 10px;
  line-height: 1.5;
  border-radius: 2px
}

/* Timeline and credentials */
.experience-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 65px
}

.experience-layout h2 {
  font-size: clamp(48px,5.5vw,75px)
}

.experience-entry {
  border-top: 1px solid var(--ink);
  padding: 22px 0
}

.experience-entry+.experience-entry {
  margin-top: 15px
}

.experience-meta {
  font-size: 10px;
  color: #646560;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px
}

.experience-entry h3 {
  font-family: var(--display);
  font-size: 32px;
  text-transform: uppercase
}

.experience-entry h4 {
  font-size: 12px;
  margin-top: 7px;
  font-weight: 700;
  line-height: 1.4
}

.experience-entry p {
  font-size: 12px;
  color: #646560;
  line-height: 1.8;
  margin-top: 17px
}

.detail-list {
  padding-left: 17px;
  color: #646560;
  font-size: 12px;
  line-height: 1.8;
  margin: 14px 0 0
}

.detail-list li+li {
  margin-top: 7px
}

.detail-list li::marker {
  color: var(--orange-dark)
}

.credentials-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  border-top: 1px solid var(--line);
  padding-top: 35px;
  margin-top: 45px
}

.small-heading {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.5;
  margin-bottom: 25px
}

.education-entry {
  padding: 15px 0;
  border-top: 1px solid var(--line)
}

.education-entry h4 {
  font-size: 12px;
  line-height: 1.6
}

.education-entry p {
  font-size: 11px;
  color: #646560;
  margin-top: 4px
}

.education-entry .education-period {
  font-size: 9px;
  letter-spacing: .03em;
  color: #646560;
  margin-top: 8px
}

.certification {
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 20px 0
}

.certification-icon {
  font-size: 29px;
  color: var(--orange-dark);
  line-height: 1
}

.certification h4 {
  font-family: var(--display);
  font-size: 26px;
  text-transform: uppercase;
  line-height: 1.05
}

.certification p {
  font-size: 11px;
  color: #646560;
  margin-top: 9px
}

.certification a {
  font-size: 10px;
  display: inline-block;
  border-bottom: 1px solid #aaa;
  margin-top: 13px
}

.certification a:hover {
  color: var(--orange-dark)
}

/* Process, LinkedIn and footer */
.process-section h2 {
  font-size: clamp(55px,7vw,100px)
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 42px;
  margin-top: 65px
}

.process-step {
  border-top: 1px solid #ffffff40;
  padding-top: 21px
}

.process-step>span {
  font-size: 10px;
  color: #f58b67
}

.process-step h3 {
  font-family: var(--display);
  font-size: 30px;
  text-transform: uppercase;
  margin-top: 18px
}

.process-step p {
  font-size: 12px;
  color: #b5b7af;
  line-height: 1.8;
  margin-top: 15px
}

.linkedin-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  border-bottom: 1px solid var(--line)
}

.linkedin-main h2 {
  font-size: clamp(44px,4.8vw,66px);
  text-transform: uppercase;
  margin-top: 23px;
  max-width: 500px
}

.linkedin-main>.body-copy {
  font-size: 13px;
  margin: 22px 0
}

.linkedin-updates {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px
}

.linkedin-profile-card {
  background: #eeece6;
  padding: 32px;
  border: 1px solid var(--line);
  position: relative;
  min-height: 235px;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.linkedin-icon {
  width: 38px;
  height: 38px;
  color: var(--ink)
}

.linkedin-profile-card h3 {
  font-family: var(--display);
  font-size: 33px;
  text-transform: uppercase;
  margin: 24px 0 8px
}

.linkedin-profile-card p {
  font-size: 11px;
  color: #646560
}

.linkedin-profile-card .profile-arrow {
  position: absolute;
  right: 30px;
  top: 28px;
  font-size: 24px
}

.linkedin-profile-card:hover .profile-arrow {
  color: var(--orange-dark)
}

.linkedin-update {
  border-top: 1px solid var(--line);
  padding-top: 18px
}

.linkedin-update time {
  font-size: 9px;
  color: #646560
}

.linkedin-update h3 {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
  margin: 8px 0
}

.linkedin-update p {
  font-size: 12px;
  color: #646560;
  line-height: 1.8
}

.linkedin-update a {
  font-size: 10px;
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  border-bottom: 1px solid
}

.contact-section {
  padding-bottom: 20px
}

.contact-section .section-top {
  margin-bottom: 30px
}

.back-top {
  font-size: 9px;
  display: flex;
  gap: 12px
}

.contact-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px
}

.contact-heading h2 {
  font-size: clamp(66px,10.6vw,150px);
  line-height: .92;
  text-transform: uppercase;
  max-width: 1000px
}

.contact-circle {
  flex: none;
  display: grid;
  place-items: center;
  height: 100px;
  width: 100px;
  border-radius: 50%;
  background: var(--orange);
  font-size: 48px;
  transition: transform .25s,background .25s
}

.contact-circle:hover {
  transform: rotate(45deg);
  background: #f67c56
}

.contact-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 65px
}

.contact-bottom p {
  font-size: 12px;
  color: #646560;
  max-width: 510px;
  line-height: 1.8
}

.contact-email {
  font-size: clamp(17px,2.4vw,28px);
  font-weight: 600;
  display: inline-block;
  margin-top: 12px;
  letter-spacing: -.03em;
  border-bottom: 1px solid var(--ink)
}

.contact-email:hover {
  color: var(--orange-dark)
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.social-links a {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  font-weight: 700
}

.social-links a:hover {
  color: var(--orange-dark)
}

.social-links svg {
  height: 15px;
  width: 15px
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 8px;
  letter-spacing: .06em;
  color: #73736f;
  text-transform: uppercase
}

/* Project detail dialog */
#project-dialog {
  position: fixed;
  inset: 0;
  max-width: 860px;
  width: calc(100% - 40px);
  max-height: calc(100dvh - 60px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px #0006;
  overscroll-behavior: contain
}

#project-dialog::backdrop {
  background: #111b;
  backdrop-filter: blur(8px)
}

.dialog-frame {
  padding: 35px 44px 44px
}

.dialog-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 21px;
  margin-bottom: 30px
}

.dialog-toolbar .eyebrow {
  font-size: 9px
}

.dialog-close {
  border: 1px solid var(--line);
  background: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 10px;
  font-size: 10px
}

.dialog-close span {
  font-size: 24px;
  line-height: 1
}

.dialog-close:hover {
  border-color: var(--ink)
}

.dialog-category {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange-dark);
  font-weight: 800;
  margin-bottom: 12px
}

#dialog-title {
  font-size: clamp(40px,5vw,64px);
  text-transform: uppercase;
  max-width: 700px
}

.dialog-summary {
  font-size: 14px;
  color: #646560;
  line-height: 1.8;
  margin-top: 20px
}

.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 21px
}

.dialog-tags>span {
  border: 1px solid var(--line);
  padding: 4px 9px;
  font-size: 10px
}

.dialog-repo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 23px;
  border: 1px solid var(--ink);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700
}

.dialog-repo svg {
  width: 19px;
  height: 19px
}

.dialog-repo[href]:hover {
  background: var(--ink);
  color: var(--paper)
}

.repo-pending {
  color: #73736f;
  border-color: var(--line)
}

.dialog-workflow {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  background: #eceae3;
  padding: 18px 20px;
  margin-top: 30px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 800
}

.workflow-arrow {
  font-size: 18px;
  color: var(--orange-dark);
  margin: 0 6px
}

.dialog-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line)
}

.dialog-section h3 {
  font-family: var(--display);
  font-size: 26px;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 12px
}

.dialog-section p {
  color: #646560;
  font-size: 13px;
  line-height: 1.9
}

.dialog-section .detail-list {
  font-size: 13px
}

.dialog-end {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: .05em;
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: #73736f;
  text-transform: uppercase
}

.noscript-note {
  padding: 30px;
  background: var(--orange);
  font-size: 14px
}

@media(min-width:1440px) {
  h1 {
    font-size: 104px
  }
  .hero-bottom>p {
    font-size: 184px
  }
}

@media(max-width:1100px) {
  .section {
    padding: 70px 38px
  }
  .hero {
    padding: 0 38px
  }
  .main-nav {
    gap: 20px
  }
  .hero-main {
    min-height: 465px;
    padding-top: 55px
  }
  .hero-copy {
    width: 62%
  }
  .hero-art {
    right: -26px;
    width: 51%;
    height: 98%
  }
  .hero-copy .eyebrow {
    max-width: 320px
  }
  .hero-intro {
    max-width: 300px
  }
  .hero-actions {
    gap: 18px
  }
  .button {
    gap: 16px
  }
  .hero-actions .text-link {
    font-size: 9px;
    gap: 8px
  }
  .art-caption {
    display: none
  }
  .about-layout {
    gap: 55px
  }
  .about-photo-wrap img {
    height: 470px
  }
  .projects-grid {
    gap: 46px
  }
  .project-box {
    height: 355px
  }
  .box-front {
    padding: 22px
  }
  .project-glyph {
    gap: 8px
  }
  .mini-window {
    width: 78px
  }
  .project-title {
    font-size: 37px
  }
  .experience-layout {
    gap: 45px
  }
  .linkedin-section {
    gap: 50px
  }
  .contact-circle {
    width: 80px;
    height: 80px;
    font-size: 36px
  }
  .contact-heading {
    gap: 25px
  }
  .contact-bottom {
    align-items: start;
    flex-direction: column
  }
  .contact-bottom {
    margin-bottom: 45px
  }
}

@media(max-width:800px) {
  .site-wrap {
    padding: 10px
  }
  .section {
    padding: 60px 25px
  }
  .hero {
    padding: 0 25px
  }
  .site-header {
    height: 80px;
    gap: 20px
  }
  .wordmark {
    font-size: 26px
  }
  .header-contact {
    margin-left: auto;
    font-size: 9px;
    padding: 7px 11px;
    gap: 12px
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    padding: 10px 0;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    order: 3
  }
  .menu-lines {
    width: 18px;
    height: 9px;
    border-top: 1px solid;
    border-bottom: 1px solid;
    display: block
  }
  .main-nav {
    display: none;
    position: absolute;
    right: 0;
    left: 0;
    top: 73px;
    background: #292a27;
    padding: 25px;
    border: 1px solid #ffffff30;
    flex-direction: column;
    gap: 22px
  }
  .main-nav.is-open {
    display: flex
  }
  .main-nav a {
    font-size: 12px
  }
  .hero-main {
    padding-top: 45px;
    min-height: 455px
  }
  .hero-copy {
    width: 70%
  }
  h1 {
    font-size: clamp(57px,8.1vw,72px)
  }
  .hero-copy .eyebrow {
    font-size: 8px;
    max-width: 270px
  }
  .hero-intro {
    font-size: 11px;
    max-width: 265px
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 15px
  }
  .button {
    padding: 11px 14px;
    font-size: 9px
  }
  .hero-art {
    width: 53%;
    right: -40px;
    height: 85%
  }
  .portrait-orbit {
    top: 25%
  }
  .hero-bottom>p {
    font-size: 13.4vw
  }
  .hero-meta {
    font-size: 7px;
    letter-spacing: .08em
  }
  .section-top {
    margin-bottom: 30px
  }
  .section-top .micro {
    display: none
  }
  .section-heading {
    gap: 30px;
    margin-bottom: 40px
  }
  .section-heading>p {
    max-width: 260px;
    font-size: 12px
  }
  h2 {
    font-size: 53px
  }
  .projects-grid {
    gap: 38px;
    padding-right: 14px
  }
  .project-box {
    height: 345px
  }
  .project-title {
    font-size: 30px
  }
  .box-front {
    padding: 19px
  }
  .box-topline {
    font-size: 7px;
    gap: 8px
  }
  .project-number {
    font-size: 22px
  }
  .project-subtitle {
    font-size: 9px
  }
  .project-glyph {
    gap: 6px
  }
  .mini-window {
    width: 63px;
    height: 60px;
    padding: 21px 7px 6px
  }
  .glyph-result {
    font-size: 29px
  }
  .glyph-result small {
    font-size: 6px
  }
  .glyph-arrow {
    font-size: 16px
  }
  .box-bottomline {
    font-size: 8px
  }
  .project-caption {
    font-size: 8px;
    gap: 8px
  }
  .about-layout {
    gap: 35px;
    grid-template-columns: .9fr 1.1fr
  }
  .about-photo-wrap {
    margin-left: 6px
  }
  .about-photo-wrap img {
    height: 460px
  }
  .about-copy h2 {
    font-size: 44px
  }
  .body-copy {
    font-size: 12px
  }
  .about-facts {
    gap: 15px
  }
  .about-facts dd {
    font-size: 10px
  }
  .skills-grid {
    gap: 30px
  }
  .skill-title {
    font-size: 25px
  }
  .skill-tags li {
    font-size: 9px
  }
  .experience-layout {
    grid-template-columns: 1fr;
    gap: 35px
  }
  .experience-layout h2 {
    font-size: 55px
  }
  .credentials-layout {
    gap: 35px
  }
  .process-grid {
    gap: 25px;
    margin-top: 40px
  }
  .process-step h3 {
    font-size: 26px
  }
  .process-step p {
    font-size: 11px
  }
  .linkedin-section {
    gap: 35px
  }
  .linkedin-main h2 {
    font-size: 48px
  }
  .linkedin-profile-card {
    padding: 25px
  }
  .contact-heading h2 {
    font-size: 10.7vw
  }
  .contact-circle {
    width: 65px;
    height: 65px;
    font-size: 30px
  }
  .footer-meta {
    font-size: 7px
  }
  .footer-meta>span:nth-child(2) {
    display: none
  }
}

@media(max-width:600px) {
  .section {
    padding: 50px 18px
  }
  .hero {
    padding: 0 20px;
    border-radius: 12px
  }
  .site-header {
    height: 74px
  }
  .hero-main {
    padding-top: 35px;
    min-height: auto;
    display: flex;
    flex-direction: column
  }
  .hero-copy {
    width: 100%;
    padding-bottom: 0
  }
  .hero-copy .eyebrow {
    font-size: 8px;
    max-width: none;
    line-height: 1.7;
    margin-bottom: 17px
  }
  h1 {
    font-size: clamp(51px,12.6vw,75px);
    line-height: .93
  }
  .hero-intro {
    font-size: 12px;
    max-width: 330px;
    margin-top: 20px
  }
  .hero-actions {
    gap: 22px;
    margin-top: 23px
  }
  .hero-actions .text-link {
    font-size: 9px
  }
  .hero-art {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: end;
    margin-top: 10px;
    margin-right: -16px;
    width: 87%;
    height: 355px;
    max-width: 365px
  }
  .portrait-orbit {
    top: 14%;
    left: 3%;
    right: 1%
  }
  .hero-art img {
    width: 100%;
    height: 104%
  }
  .art-caption {
    display: block;
    top: 20%;
    left: -15%;
    right: auto;
    font-size: 7px
  }
  .hero-bottom {
    padding-top: 0;
    margin-top: -4px
  }
  .hero-bottom>p {
    font-size: 13.2vw;
    line-height: 1;
    padding-bottom: 12px;
    letter-spacing: -.02em
  }
  .hero-meta {
    font-size: 6px;
    padding: 12px 0 16px
  }
  .hero-meta a {
    gap: 7px
  }
  .section-heading {
    display: block;
    margin-bottom: 35px
  }
  .section-heading>p {
    margin-top: 20px;
    max-width: 350px
  }
  .section-top {
    margin-bottom: 26px
  }
  .eyebrow {
    font-size: 9px
  }
  .section-heading h2,h2 {
    font-size: clamp(43px,10.6vw,61px)
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 43px;
    padding: 8px 15px 22px 4px
  }
  .project-box {
    height: 360px;
    --rx: 4deg;
    --ry: -6deg
  }
  .box-front {
    padding: 24px 25px
  }
  .box-topline {
    font-size: 9px
  }
  .project-number {
    font-size: 26px
  }
  .project-title {
    font-size: 39px;
    max-width: 95%;
    margin-top: 18px
  }
  .project-subtitle {
    font-size: 10px;
    max-width: 310px
  }
  .project-glyph {
    gap: 18px
  }
  .mini-window {
    width: 87px;
    height: 65px
  }
  .glyph-result {
    font-size: 35px
  }
  .glyph-result small {
    font-size: 7px
  }
  .glyph-arrow {
    font-size: 22px
  }
  .box-bottomline {
    font-size: 9px
  }
  .project-caption {
    font-size: 9px;
    margin-top: 29px
  }
  .section-footnote {
    font-size: 9px;
    margin-top: 15px
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 45px
  }
  .about-photo-wrap {
    width: 87%;
    margin: 5px auto 0
  }
  .about-photo-wrap img {
    height: 430px;
    object-position: 50% 29%
  }
  .about-copy h2 {
    font-size: 50px;
    max-width: 360px
  }
  .body-copy {
    font-size: 13px
  }
  .about-facts {
    gap: 20px
  }
  .about-facts dd {
    font-size: 12px
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 28px
  }
  .expertise-section,.process-section {
    border-radius: 12px
  }
  .skill-title {
    font-size: 27px
  }
  .skill-tags li {
    font-size: 10px
  }
  .credentials-layout {
    grid-template-columns: 1fr;
    gap: 38px;
    margin-top: 25px
  }
  .small-heading {
    margin-bottom: 18px
  }
  .experience-layout h2 {
    font-size: 53px
  }
  .experience-entry h3 {
    font-size: 32px
  }
  .experience-meta {
    font-size: 9px
  }
  .process-section h2 {
    font-size: clamp(47px,11.2vw,65px)
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 30px
  }
  .process-step {
    display: grid;
    grid-template-columns: 35px 1fr;
    column-gap: 10px;
    padding-top: 18px
  }
  .process-step h3 {
    margin-top: 0;
    font-size: 30px
  }
  .process-step>span {
    padding-top: 6px
  }
  .process-step p {
    grid-column: 2;
    margin-top: 12px;
    font-size: 12px
  }
  .linkedin-section {
    grid-template-columns: 1fr;
    gap: 32px
  }
  .linkedin-main h2 {
    font-size: 51px;
    max-width: 360px
  }
  .linkedin-profile-card {
    min-height: 210px
  }
  .contact-section .eyebrow {
    font-size: 8px;
    letter-spacing: .05em
  }
  .back-top {
    font-size: 8px;
    gap: 6px
  }
  .contact-heading {
    gap: 13px
  }
  .contact-heading h2 {
    font-size: clamp(53px,12.8vw,76px);
    max-width: 83%
  }
  .contact-circle {
    width: 49px;
    height: 49px;
    font-size: 27px
  }
  .contact-bottom {
    margin-top: 25px;
    margin-bottom: 40px;
    gap: 25px
  }
  .contact-bottom p {
    font-size: 11px
  }
  .contact-email {
    font-size: 22px
  }
  .footer-meta {
    font-size: 7px;
    gap: 20px
  }
  .footer-meta>span:first-child {
    max-width: 70%
  }
  .social-links {
    gap: 20px
  }
  .social-links a {
    font-size: 10px
  }
  .dialog-frame {
    padding: 22px 22px 30px
  }
  #project-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 30px);
    border-radius: 10px
  }
  .dialog-toolbar {
    margin-bottom: 25px
  }
  .dialog-toolbar .eyebrow {
    font-size: 8px
  }
  .dialog-close {
    font-size: 9px;
    gap: 10px
  }
  #dialog-title {
    font-size: 42px
  }
  .dialog-summary {
    font-size: 12px
  }
  .dialog-section p,.dialog-section .detail-list {
    font-size: 12px
  }
  .dialog-workflow {
    gap: 7px;
    padding: 16px;
    font-size: 8px
  }
  .workflow-arrow {
    margin: 0 2px
  }
  .dialog-end {
    font-size: 8px;
    gap: 12px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }
  *,*::before,*::after {
    animation: none!important;
    transition: none!important
  }
  .box-shell {
    transform: translateY(0) rotateX(3deg) rotateY(-5deg)!important
  }
  .contact-circle:hover {
    transform: none
  }
}

/* Configurable artwork and an integrated portrait edge. */
.workflow-art {
  width: 30%;
  max-width: 105px;
  min-height: 62px;
  border: 1px solid #20202065;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.workflow-art b {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600
}

.workflow-art small {
  font-size: 7px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  overflow-wrap: anywhere
}

.project-glyph.generic-workflow {
  gap: 10px
}

.hero-art img {
  bottom: -72px;
  height: 113%
}

@media(max-width:600px) {
  .hero-art img {
    bottom: -25px;
    height: 108%
  }
  .project-glyph.generic-workflow {
    gap: 8px
  }
}

/* Keep project artwork and longer edited titles comfortable on narrow screens. */
.glyph-checks {
  white-space: nowrap;
  font-size: 18px;
  letter-spacing: 0;
}
@media (max-width: 600px) {
  .project-box {
    height: 420px;
  }
  .project-glyph {
    gap: 8px;
  }
  .mini-window {
    min-width: 52px;
  }
}

.window-search {
  display: block;
}

/* ==========================================================================
   Hero depth: a lit backdrop, separate foreground and grounding shadow.
   ========================================================================== */
.hero-art {
  perspective: 1100px;
  transform-style: preserve-3d;
  --portrait-x: 0px;
  --portrait-y: 0px;
  --portrait-rx: 0deg;
  --portrait-ry: 0deg;
}
.portrait-light {
  position: absolute;
  top: -5%;
  left: 2%;
  right: -1%;
  height: 69%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 31%, rgba(255,233,205,.68), rgba(241,177,116,.22) 42%, transparent 71%);
  filter: blur(23px);
  transform: translateZ(-65px);
}
.portrait-orbit {
  top: 7%;
  background: radial-gradient(circle at 36% 22%, #f8bb8a 0%, #ed8959 37%, #d15b37 72%, #9b3c28 100%);
  border: 1px solid rgba(255,225,196,.36);
  box-shadow: 9px 15px 0 rgba(140,55,32,.38), 0 30px 46px rgba(0,0,0,.23), inset 1px 2px 0 rgba(255,255,255,.22);
  transform: translateZ(-35px) rotateY(-8deg);
}
.portrait-ground {
  position: absolute;
  left: 20%;
  right: 5%;
  bottom: -58px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0,0,0,.54);
  filter: blur(19px);
  transform: translateZ(-20px) rotateX(55deg);
}
.hero-art img {
  transform: translate3d(var(--portrait-x), var(--portrait-y), 42px) rotateX(var(--portrait-rx)) rotateY(var(--portrait-ry));
  transform-origin: 50% 65%;
  transition: transform .38s cubic-bezier(.2,.7,.2,1);
  filter: drop-shadow(0 0 1px rgba(255,235,205,.7)) drop-shadow(-6px 5px 10px rgba(255,208,161,.15)) drop-shadow(13px 22px 17px rgba(0,0,0,.42));
  backface-visibility: hidden;
}
.art-caption { z-index: 2; }

/* Locally bundled, original-colour brand marks. Visible text labels the links. */
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
}
.brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.linkedin-icon .brand-icon { width: 38px; height: 38px; }
.social-links { gap: 16px; }
.social-links a { font-size: 11px; gap: 8px; }
.social-links .brand-icon { width: 21px; height: 21px; }
.contact-email { display: inline-flex; align-items: center; gap: 13px; }
.contact-email .brand-icon { width: 31px; height: 27px; }
.contact-circle .brand-icon {
  width: 43px;
  height: 43px;
  padding: 7px;
  background: #fff;
  border-radius: 9px;
}
.contact-circle:hover { transform: translateY(-5px); }
.dialog-repo .brand-icon { width: 21px; height: 21px; }
.dialog-repo[href]:hover { background: #ebe8df; color: var(--ink); }

/* Project identities replace the small schematic illustrations. */
.project-branding {
  justify-content: flex-start;
  gap: 22px;
  margin: 23px 0;
}
.project-icon {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 94px;
  height: 94px;
  padding: 17px;
  border: 1px solid rgba(32,32,32,.17);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(32,32,32,.1), 0 13px 17px rgba(32,32,32,.14), inset 0 1px 0 #fff;
  transform: rotate(-5deg);
}
.project-icon img, .project-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.project-tool-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  max-width: 225px;
}
.project-tool-label {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.05;
}
.project-tool-detail {
  font-size: 10px;
  line-height: 1.6;
  max-width: 210px;
}
.dialog-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 23px;
}
.dialog-project-icon {
  width: 56px;
  height: 56px;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 3px 0 rgba(32,32,32,.08), 0 7px 12px rgba(32,32,32,.08);
  transform: none;
}
.dialog-brand-row .dialog-category { margin: 0; }
@media (min-width: 801px) {
  .hero-art { height: 100%; }
}
@media (max-width: 1100px) {
  .project-branding { gap: 16px; }
  .project-icon { width: 80px; height: 80px; padding: 14px; border-radius: 17px; }
  .project-tool-label { font-size: 23px; }
  .project-tool-detail { font-size: 9px; }
  .dialog-project-icon { width: 56px; height: 56px; padding: 10px; border-radius: 12px; }
}
@media (max-width: 600px) {
  .portrait-orbit { top: 7%; }
  .portrait-light { top: -7%; left: -1%; right: -2%; height: 80%; filter: blur(17px); }
  .portrait-ground { bottom: -28px; height: 36px; filter: blur(14px); }
  .hero-art img { transform: translateZ(20px); }
  .project-branding { gap: 20px; }
  .project-icon { width: 89px; height: 89px; padding: 15px; border-radius: 18px; }
  .project-tool-label { font-size: 25px; }
  .project-tool-detail { font-size: 10px; }
  .contact-email { gap: 9px; }
  .contact-email .brand-icon { width: 24px; height: 22px; }
  .contact-circle .brand-icon { width: 30px; height: 30px; padding: 5px; border-radius: 7px; }
  .social-links { gap: 15px; }
  .social-links a { font-size: 10px; }
  .dialog-project-icon { width: 54px; height: 54px; padding: 10px; border-radius: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img { transform: translateZ(20px) !important; transition: none; }
  .contact-circle:hover { transform: none; }
}


/* Keep a complete email address readable even on compact mobile screens. */
.contact-email {
  max-width: 100%;
}
.contact-email > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .contact-email {
    font-size: clamp(16px, 5vw, 22px);
  }
}

/* The Playwright source includes generous canvas space; retain its proportions. */
.project-icon img[src$="playwright.svg"] {
  transform: scale(1.2);
}
/* Preserve the portrait composition on the smallest phone screens. */
@media (max-width: 600px) {
  .hero-art {
    height: clamp(285px, 91vw, 355px);
  }
}
