:root {
  --paper: #f7f6f1;
  --ink: #1e2824;
  --muted: #586157;
  --line: #d2d6cb;
  --green: #245746;
  --orange: #9b4025;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }
a { color: inherit; text-decoration: none; }
button { color: inherit; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
a, button { touch-action: manipulation; text-underline-offset: .24em; }
:focus-visible { outline: 3px solid #aa4e2a; outline-offset: 3px; }
::selection { background: #d2dfbd; color: #14271c; }
[hidden] { display: none !important; }
.wrap { width: min(1240px, 88%); margin-inline: auto; }
.eyebrow { font: 600 12px/1.5 var(--mono); letter-spacing: .055em; }
.skip-link { position: fixed; top: 8px; left: 10px; z-index: 10; transform: translateY(-160%); background: var(--ink); color: white; padding: 12px 20px; }
.skip-link:focus { transform: none; }
.skip-link:not(:focus) { clip-path: inset(50%); }
.site-bar { position: sticky; z-index: 5; top: 0; background: var(--paper); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 80px; border-bottom: 1px solid var(--line); }
.masthead { display: inline-flex; align-items: center; gap: 13px; white-space: nowrap; }
.monogram { display: grid; grid-auto-flow: column; align-content: center; justify-content: center; width: 42px; height: 42px; padding-right: 4px; background: var(--green); color: var(--paper); border-radius: 50%; font: italic 29px/1 var(--serif); letter-spacing: -.1em; }
.monogram span { color: #f3ac73; }
.masthead-title { font: italic 23px/1 var(--serif); letter-spacing: -.045em; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 40px); font-size: 14px; font-weight: 500; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; }
.site-header nav a:hover, .masthead:hover .masthead-title { text-decoration: underline; }
.nav-contact { color: var(--green); }
.brand { font: 500 18px/.97 var(--serif); }
.hero-scene { display: grid; isolation: isolate; background: var(--gradient-deep, #22312e); }
.hero-photo, .hero-heading, .hero-scene::after { grid-area: 1 / 1; }
.hero-photo, .hero-photo img { display: block; width: 100%; }
.hero-photo img { height: auto; }
.hero-scene::after {
  content: ""; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(10 23 20 / .90) 0%, rgb(10 23 20 / .78) 36%, transparent 63%);
}
.hero-heading { z-index: 2; align-self: center; padding-block: clamp(16px, 2.4vw, 36px); color: #fffaf0; }
.hero h1 {
  font: 800 clamp(46px, 6.05vw, 100px)/.94 "Franklin Gothic Demi Cond", "Arial Narrow", var(--sans);
  letter-spacing: -.053em;
  text-transform: uppercase;
  margin-left: -.035em;
}
.hero h1 span { display: block; }
.hero-role { margin-top: clamp(8px, 1.15vw, 18px); font-size: clamp(16px, 1.4vw, 21px); font-weight: 600; }
.hero-location { margin-top: 2px; font-size: 13px; }
.hero-description { margin-top: clamp(8px, 1.2vw, 16px); max-width: min(43ch, 48%); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: clamp(12px, 1.4vw, 20px); }
.button, .text-link, .dialog-bottom .demo-launch { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; font-weight: 600; }
.hero-actions .button { gap: 8px; padding: 9px 13px; border: 1px solid currentColor; border-radius: 2px; }
.hero-actions .hero-primary { background: var(--paper); color: var(--ink); border-color: transparent; }
.hero-primary:hover { background: var(--gradient-wash, #e6ebe2); }
.hero-secondary:hover { text-decoration: underline; }
.hero-actions a:focus-visible { outline-color: var(--paper); }
.hero-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: 0;
  padding: clamp(18px, 2.8vw, 38px) 0;
  list-style: none;
}
.hero-results li { display: flex; align-items: baseline; gap: 6px clamp(12px, 2vw, 28px); padding-inline-end: clamp(12px, 3vw, 40px); }
.hero-results li + li { border-inline-start: 1px solid var(--line); padding-inline: clamp(12px, 3vw, 40px) 0; }
.hero-results strong { color: var(--green); font: 500 clamp(29px, 3.4vw, 51px)/1 var(--serif); letter-spacing: -.055em; white-space: nowrap; }
.hero-results li span { max-width: 31ch; color: var(--muted); font-size: clamp(13px, 1.2vw, 17px); line-height: 1.4; }
.dialog-bottom .demo-launch { padding: 12px 19px; border-radius: 2px; color: white; background: var(--green); }
.dialog-bottom .demo-launch:hover { background: #173e30; }
.text-link { color: var(--green); text-decoration: underline; text-decoration-color: #a0afa4; }
.text-link:hover { text-decoration-color: currentColor; }
.project-dialog { width: min(680px, calc(100% - 32px)); max-height: min(88dvh, 880px); border: 1px solid #b3bcaf; padding: 0; border-radius: 5px; background: var(--paper); color: var(--ink); box-shadow: 0 16px 72px #0e221a33; }
.project-dialog::backdrop { background: rgb(17 35 25 / .55); }
.dialog-shell { padding: clamp(22px, 3.4vw, 45px); }
.dialog-top, .dialog-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dialog-top .eyebrow, .dialog-status { color: var(--green); font-size: 12px; }
.dialog-close { min-height: 44px; font-size: 14px; }
.dialog-close span { padding-left: 5px; font-size: 21px; vertical-align: middle; }
.dialog-status { margin: 15px 0 5px; }
.dialog-shell h2 { font: 400 clamp(34px, 4vw, 54px)/1.05 var(--serif); letter-spacing: -.05em; }
.dialog-summary { font-size: 18px; margin: 14px 0 22px; line-height: 1.5; }
.dialog-content section { padding: 14px 0; border-top: 1px solid var(--line); }
.dialog-content h3 { font-weight: 650; margin-bottom: 4px; font-size: 15px; }
.dialog-content p, .dialog-content li { font-size: 15px; color: #444f46; }
.dialog-content ul { margin: 5px 0 0; padding-left: 1.1em; }
.dialog-content li + li { margin-top: 4px; }
.dialog-content .dialog-tech { font: 13px/1.6 var(--mono); }
.dialog-bottom { margin-top: 10px; flex-wrap: wrap; }
@media (max-width: 990px) {
  .wrap { width: 90%; }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 112px; }
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 64px; gap: 10px; }
  .site-header nav { gap: 15px; font-size: 13px; }
  .masthead { gap: 8px; }
  .masthead-title { font-size: 20px; }
  .monogram { width: 35px; height: 35px; font-size: 24px; }
  .site-bar .site-header { display: grid; grid-template-columns: repeat(4, auto); gap: 0 10px; justify-content: space-between; padding-block: 4px 1px; }
  .site-bar .masthead { grid-column: 1 / -1; min-height: 44px; }
  .site-bar .site-header nav { display: contents; }
  .site-bar .site-header nav a { justify-content: center; min-height: 42px; font-size: 13px; }
  .site-bar .site-header nav a[href="#work"] { justify-self: start; }
  .site-bar .site-header nav a[href="#contact"] { justify-self: end; }
  .hero-scene { display: block; background: transparent; }
  .hero-scene::after { display: none; }
  .hero-heading { padding-block: 19px 22px; color: var(--ink); }
  .hero h1 { font-size: clamp(30px, 7.6vw, 56px); line-height: 1; }
  .hero h1 span { display: inline; }
  .hero-role { color: var(--green); }
  .hero-location { color: var(--muted); }
  .hero-description { max-width: 53ch; }
  .hero-actions .hero-primary { background: var(--gradient-action, var(--green)); color: white; }
  .hero-actions .hero-primary:hover { background: var(--gradient-deep, #173e30); }
  .hero-secondary { color: var(--green); }
  .hero-actions a:focus-visible { outline-color: var(--green); }
  .hero-results { border-top: 1px solid var(--line); }
  .hero-results li { display: grid; align-content: start; }
}
@media (max-width: 700px) {
  .hero-photo img { max-height: min(40svh, 385px); object-fit: cover; object-position: center 39%; }
}
@media (max-width: 520px) and (max-height: 650px) {
  .hero-photo img { max-height: 31svh; object-position: center 32%; }
}
@media (max-width: 520px) {
  .masthead .monogram { display: none; }
  .masthead-title { width: min-content; white-space: normal; font-size: 18px; line-height: 1; }
  .site-bar .masthead-title { width: auto; white-space: nowrap; font-size: 20px; }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 32px); }
  .site-header nav { gap: 8px; font-size: 12px; }
  .site-header nav .nav-contact { gap: 3px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { gap: 6px; padding-inline: 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-bar { position: static; }
  .wrap { width: 100%; }
  body { background: white; color: black; }
  .site-header nav, .hero-photo, .hero-actions, .skip-link, .project-dialog { display: none; }
  .site-header { min-height: auto; padding-block: 8pt; }
  .hero-scene { display: block; background: white; padding: 0; }
  .hero-heading { color: black; padding-block: 14pt; }
  .hero-scene::after { display: none; }
  .hero h1 { font-size: 40pt; margin: 0; }
  .hero h1 span { display: inline; }
  .hero-description { max-width: 65ch; font-size: 11pt; }
  .hero-results { padding: 6pt 0 12pt; }
  .hero-results li { display: block; }
  .hero-results strong { font-size: 17pt; }
}

[data-portfolio-gradient="midnight-glacier"] {
  --gradient-deep: #101a32;
  --gradient-mid: #244c68;
  --gradient-light: #91bddb;
  --gradient-wash: #e2eef7;
  --gradient-paper: #f6faff;
}

@media screen {
  html[data-portfolio-gradient] {
    --paper: var(--gradient-paper);
    --ink: color-mix(in srgb, var(--gradient-deep) 85%, #1e2824);
    --green: var(--gradient-mid);
    --muted: color-mix(in srgb, var(--gradient-deep) 64%, #676c65);
    --line: color-mix(in srgb, var(--gradient-mid) 24%, var(--paper));
    --gradient-action: linear-gradient(116deg, var(--gradient-deep), var(--gradient-mid));
    --gradient-hero-mid: color-mix(in srgb, var(--gradient-deep) 36%, var(--gradient-mid));
  }

  html[data-portfolio-gradient] .site-bar {
    background: linear-gradient(112deg, var(--paper) 32%, var(--gradient-wash));
  }
  html[data-portfolio-gradient] :is(.monogram, .demo-launch, .profile-download) {
    background: var(--gradient-action);
  }
  html[data-portfolio-gradient] .monogram span { color: var(--gradient-light); }
  html[data-portfolio-gradient] :is(.demo-launch, .profile-download):hover {
    background: var(--gradient-deep);
  }
  html[data-portfolio-gradient] .hero-scene::after {
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--gradient-deep) 96%, transparent) 0%,
      color-mix(in srgb, var(--gradient-hero-mid) 94%, transparent) 35%,
      color-mix(in srgb, var(--gradient-hero-mid) 89%, transparent) 46%,
      transparent 65%);
  }
  html[data-portfolio-gradient] .hero {
    background: linear-gradient(118deg, var(--gradient-wash), var(--paper) 80%);
  }

  html[data-portfolio-gradient] .portfolio-work {
    --work-ink: var(--ink);
    --work-green: var(--green);
    --work-rule: var(--line);
    border-color: var(--line);
    background: linear-gradient(155deg, var(--paper) 22%, var(--gradient-wash));
  }
  html[data-portfolio-gradient] .work-image {
    background: linear-gradient(142deg, var(--gradient-wash), color-mix(in srgb, var(--gradient-light) 42%, var(--paper)));
  }

  html[data-portfolio-gradient] :is(.profile-story, .profile-hiring) {
    --profile-line: var(--line);
    --profile-accent: var(--green);
    color: var(--ink);
  }
  html[data-portfolio-gradient] .profile-text-link { color: var(--green); }
  html[data-portfolio-gradient] .profile-contact { background: var(--gradient-action); }
  html[data-portfolio-gradient] .profile-contact .profile-label {
    color: color-mix(in srgb, var(--gradient-light) 58%, white);
  }

  html[data-portfolio-gradient] body:has(main.gallery) {
    background: linear-gradient(133deg, var(--gradient-wash), var(--paper) min(590px, 75vh));
  }
}
