/* Optional homepage design. Copy, navigation and other pages keep their source. */
.visual-refresh {
  --paper: #f6f4ee;
  --sand: #ede9df;
  --sage: #e7ede6;
  --ink: #24382f;
  --muted: #526057;
  --accent: #365f4b;
  --rule: #d6dcd2;
  background: var(--paper);
  color: var(--ink);
}
.visual-refresh p {
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0;
  margin-bottom: 1.2rem;
}
.visual-refresh h1,
.visual-refresh h2 {
  color: var(--ink);
  text-transform: none;
  letter-spacing: -.035em;
  line-height: 1.3;
  padding-bottom: 0;
  margin-bottom: 1.6rem;
}
.visual-refresh h1 { font-size: clamp(2.2rem, 4vw, 3.35rem); }
.visual-refresh h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.visual-refresh h1::after,
.visual-refresh h2::after { display: none; }
.visual-refresh a { color: var(--accent); }
.visual-refresh a:hover { color: var(--ink); }
.visual-refresh a:focus-visible,
.visual-refresh button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.visual-refresh .page-section {
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 96px max(28px, calc((100vw - 1120px) / 2));
  border: 0;
  background: var(--paper);
  scroll-margin-top: 76px;
}
/* The 2016 stylesheet recolors every even-numbered section. Cancel that here,
   so adding, removing, or reordering sections can never change their colors. */
.visual-refresh .page-section:nth-child(n) h2 { color: var(--ink); border-bottom-color: transparent; }
.visual-refresh .page-section:nth-child(n) p { color: var(--muted); }
.visual-refresh .page-section:nth-child(n) .page-section div.content-section { padding-right: 0; }
.visual-refresh .page-section .content-section {
  float: none;
  width: 100%;
  max-width: none;
  flex: none;
  margin: 0;
  padding: 0;
}
/* A text-led introduction, with balanced columns on larger screens. */
.visual-refresh #home {
  position: relative;
  display: block;
  padding-top: 132px;
  padding-bottom: 64px;
  background: #263631;
}
.visual-refresh #home .content-section {
  display: block;
  margin: 0;
  padding: 0;
}
.visual-refresh #home h1 {
  padding-bottom: 0;
  margin-bottom: 36px;
  color: var(--paper);
}
.visual-refresh #home .greeting {
  display: block;
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0;
  color: #d5dfcf;
}
.visual-refresh #home .headline {
  display: block;
  max-width: none;
  font-size: clamp(2.75rem, 5.4vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.visual-refresh #home .hero-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  width: 100%;
  padding-top: 32px;
  border-top: 1px solid #64756a;
}
.visual-refresh #home .hero-copy p { margin-bottom: 0; }
.visual-refresh #home p { font-size: 1.03rem; color: #dbe3dc; }
.visual-refresh #home .headline-ending { white-space: nowrap; }
.visual-refresh #home a:focus-visible,
.visual-refresh #services a:focus-visible { outline-color: #d4dfa8; }

.visual-refresh #contact h2 { color: var(--ink); font-size: clamp(2rem, 3.2vw, 2.9rem); }
.visual-refresh #contact .content-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  column-gap: 80px;
  align-items: start;
}
.visual-refresh .section-copy p:last-child { margin-bottom: 0; }

.visual-refresh #services { background: #34483d; }
.visual-refresh #services .content-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 48px;
}
.visual-refresh #services h2 {
  grid-column: 1 / -1;
  max-width: 890px;
  margin-bottom: 56px;
  color: var(--paper);
  font-size: clamp(2rem, 3.4vw, 3rem);
}
.visual-refresh #services p {
  padding: 28px 0 0;
  margin: 0;
  border-top: 1px solid #84957d;
  background: none;
  color: #e0e7dd;
}
.visual-refresh #contact p {
  padding: 0;
  background: none;
  color: #465348;
}
.visual-refresh #contact {
  background: #d8cbb0;
}
.visual-refresh #contact .contact-details {
  font-family: inherit;
  font-size: 1rem;
  line-height: 2;
}
.visual-refresh #contact .contact-details a {
  text-decoration: underline;
  text-decoration-color: #83907b;
  text-underline-offset: 4px;
}
.visual-refresh #contact a[href^="mailto:"] { font-size: 1.5rem; }
.visual-refresh #contact .contact-details .fa { color: #6a8071; margin-right: 5px; }
.visual-refresh #beyond-code {
  display: block;
  padding: 0;
  background: var(--ink);
}
.visual-refresh #beyond-code::before,
.visual-refresh #beyond-code::after { display: none; }
.visual-refresh #beyond-code > div {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  float: none;
  width: 100%;
  max-width: none;
  flex: none;
  min-height: 400px;
  height: auto !important;
  padding: 0;
  border: 0;
  background: var(--sage);
}
.visual-refresh #beyond-code.page-section #interest-psychology .content-section,
.visual-refresh #beyond-code.page-section #interest-meditation .content-section,
.visual-refresh #beyond-code.page-section #interest-trail .content-section {
  grid-column: 2;
  align-self: center;
  margin: 0;
  padding: 64px clamp(40px, 5vw, 80px);
  background: none;
}
.visual-refresh #beyond-code h3 { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 18px; color: var(--ink); }
.visual-refresh #beyond-code .content-section p { font-size: 1.04rem; color: var(--muted); }
.visual-refresh #beyond-code .content-section p:last-child { margin-bottom: 0; }
.visual-refresh #beyond-code .interest-photo {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.visual-refresh #beyond-code #interest-psychology { background: #263631; }
.visual-refresh #beyond-code #interest-psychology h3 { color: #f6f4ee; }
.visual-refresh #beyond-code #interest-psychology .content-section p { color: #dbe3dc; }
.visual-refresh #beyond-code #interest-meditation { background: #e2e4da; }
.visual-refresh #beyond-code.page-section #interest-meditation .content-section { grid-column: 1; }
.visual-refresh #beyond-code #interest-meditation .interest-photo { inset: 0 0 0 auto; object-position: 75% center; }
.visual-refresh #top-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 18px max(28px, calc((100vw - 1120px) / 2));
}
.visual-refresh #navbarResponsive,
.visual-refresh #top-nav .navbar-brand { background: none; }
.visual-refresh #top-nav .navbar-brand { padding-left: 0; color: var(--ink); }
.visual-refresh #navbarResponsive .nav-item a {
  padding: 6px 10px;
  font-size: .72rem;
  color: var(--muted);
}
.visual-refresh #navbarResponsive .nav-item a.active {
  background: var(--sage);
  color: var(--ink);
  border-radius: 3px;
}
.visual-refresh #bottom-nav {
  background: var(--ink);
  border: 0;
  padding: 28px max(28px, calc((100vw - 1120px) / 2));
  color: #dbe4da;
  font-size: .76rem;
}
.visual-refresh #bottom-nav a { color: #dbe4da; }
@media (max-width: 1000px) {
  .visual-refresh .page-section { padding-top: 76px; padding-bottom: 76px; }
  .visual-refresh #contact .content-section { column-gap: 40px; }
  .visual-refresh #home { padding-top: 116px; padding-bottom: 56px; }
  .visual-refresh #services .content-section { display: block; }
  .visual-refresh #services p + p { margin-top: 28px; }
  .visual-refresh #navbarResponsive .nav-item a { padding: 6px 7px; }
}
@media (max-width: 767px) {
  .visual-refresh .page-section { padding: 58px 24px; scroll-margin-top: 76px; }
  .visual-refresh #home { min-height: 0; padding: 110px 24px 56px; }
  .visual-refresh #home .hero-copy { grid-template-columns: 1fr; gap: 24px; }
  .visual-refresh #home .content-section,
  .visual-refresh #contact .content-section { display: block; }
  .visual-refresh #home .greeting { font-size: 1.05rem; }
  .visual-refresh #home .greeting { margin-bottom: 18px; }
  .visual-refresh #home .headline { font-size: clamp(2.2rem, 9.6vw, 3rem); }
  .visual-refresh #contact h2 { margin-bottom: 36px; }
  .visual-refresh #services h2 { margin-bottom: 32px; }
  .visual-refresh #top-nav { padding: 16px 24px; }
  .visual-refresh #navbarResponsive { clear: both; width: 100%; }
  .visual-refresh #navbarResponsive ul { float: none !important; border: 0; padding-top: 16px; }
  .visual-refresh #navbarResponsive .nav-item a { padding: 11px; font-size: .85rem; text-align: left; }
  .visual-refresh #bottom-nav { padding: 28px 24px; line-height: 1.8; }
  .visual-refresh #bottom-nav .float-xs-right { float: none !important; margin-bottom: 8px; }
}
@media (max-width: 900px) {
  .visual-refresh #beyond-code > div { display: block; min-height: 0; }
  .visual-refresh #beyond-code .interest-photo {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
  }
  .visual-refresh #beyond-code.page-section #interest-psychology .content-section,
  .visual-refresh #beyond-code.page-section #interest-meditation .content-section,
  .visual-refresh #beyond-code.page-section #interest-trail .content-section { padding: 40px 24px 48px; }
}

/* A quiet transition from professional work to personal interests. */
.visual-refresh #beyond-code .beyond-intro {
  padding: 48px max(28px, calc((100vw - 1120px) / 2));
  background: var(--paper);
  color: var(--ink);
}
.visual-refresh #beyond-code .beyond-label {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.visual-refresh #beyond-code .beyond-intro h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -.02em;
  line-height: 1.2;
}
@media (max-width: 900px) {
  .visual-refresh #beyond-code .beyond-intro { padding: 40px 24px; }
}

/* Selected photo backgrounds; original assets remain unmodified. */
.visual-refresh #home {
  isolation:isolate;
  overflow:hidden;
  background:#263631;
}
.visual-refresh #home::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:url('/images/code-ruby-v1.png') center 52% / cover no-repeat;
  filter:grayscale(.8);
}
.visual-refresh #home::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(105deg,rgba(26,43,36,.96) 0%,rgba(26,43,36,.86) 44%,rgba(26,43,36,.68) 100%);
}
.visual-refresh #home .hero-copy { border-top-color:#95a595; }
.visual-refresh #home p { color:#edf0e8; }
/* Alternate image-backed sections with plain reading sections. */
.visual-refresh #services {
  background:linear-gradient(100deg,rgba(30,48,39,.91),rgba(30,48,39,.88)),url('/images/services-workbench.jpg') center 58% / cover no-repeat;
}
.visual-refresh #services p { color:#edf0e8; border-top-color:#98a790; }
.visual-refresh #contact {
  border-top: 3px solid #263631;
  border-bottom: 3px solid #263631;
  background:linear-gradient(100deg,rgba(241,235,220,.85) 0%,rgba(241,235,220,.80) 50%,rgba(241,235,220,.59) 100%),url('/images/sky-low.jpg') center 46% / cover no-repeat;
}
.visual-refresh #contact p { color:#35473b; }
@media(max-width:767px) {
  .visual-refresh #home::before { background-position:36% center; }
  .visual-refresh #home::after { background:rgba(26,43,36,.88); }
}

/* Career background, service offers, and consulting example. */
.visual-refresh #background .work-intro{ display:grid; grid-template-columns: 1fr 1.35fr; gap:64px; align-items:start; }
.visual-refresh #background .work-intro p{ margin:0; }
.visual-refresh h3 { font-family:Montserrat,sans-serif; font-size:1.15rem; text-transform:none; letter-spacing:-.015em; line-height:1.45; margin:0 0 18px; padding:0; color:var(--ink); }
.visual-refresh h3::after { display:none; }
.visual-refresh #services h3 { color:var(--paper); }
.visual-refresh #services article { border-top:1px solid #98a790; padding-top:24px; }
.visual-refresh #services article p { padding:0; border:0; margin:0; }
.visual-refresh #services .short-approach { grid-column:1 / -1; margin-top:38px; padding-top:28px; border-top:1px solid #98a790; display:grid; grid-template-columns:1fr 2fr; gap:48px; }
.visual-refresh #services .short-approach p { padding:0; border:0; margin:0; }
.visual-refresh #beyond-code > div { min-height:270px; }
.visual-refresh #beyond-code.page-section #interest-psychology .content-section,
.visual-refresh #beyond-code.page-section #interest-meditation .content-section,
.visual-refresh #beyond-code.page-section #interest-trail .content-section { padding:36px clamp(32px,4vw,64px); }
@media(max-width:1000px) {
.visual-refresh #services article { margin-top:28px; }
}
@media(max-width:900px) {
.visual-refresh #background .work-intro{ grid-template-columns:1fr; gap:28px; }
.visual-refresh #services .short-approach { display:block; }
.visual-refresh #beyond-code > div { min-height:0; }
.visual-refresh #beyond-code.page-section .interest-photo { height:180px; aspect-ratio:auto; }
.visual-refresh #beyond-code.page-section #interest-psychology .content-section,
.visual-refresh #beyond-code.page-section #interest-meditation .content-section,
.visual-refresh #beyond-code.page-section #interest-trail .content-section { padding:32px 24px; }
}

.visual-refresh #background h2{ color:var(--ink); }
.visual-refresh #background p{ color:var(--muted); }

.visual-refresh #background .background-copy p + p{ margin-top:1.2rem; }

/* Selected work: title on the left, story on the right, ruled rows on a quiet tint. */
.visual-refresh #work { background:var(--sage); }
/* Two light text sections meet here. A rule in the Contact band's border color marks the break. */
.visual-refresh #work + #background { border-top:3px solid #263631; }
.visual-refresh #work h2 { color:var(--ink); margin-bottom:40px; }
.visual-refresh #work .work-item { display:grid; grid-template-columns:1fr 2fr; gap:48px; padding:28px 0; border-top:1px solid var(--rule); }
.visual-refresh #work .work-item:last-child { padding-bottom:0; }
.visual-refresh #work .work-item h3 { margin:0; }
.visual-refresh #work .work-item p.work-meta { margin-top:12px; font-size:.85rem; line-height:1.7; color:var(--muted); }
.visual-refresh #work .work-item p { margin:0; color:var(--muted); }
@media(max-width:900px) {
.visual-refresh #work .work-item { display:block; }
.visual-refresh #work .work-item .work-head { margin-bottom:16px; }
}
