:root {
  color-scheme: light;
  --paper: #f6f2ea;
  --paper-deep: #eee8dc;
  --ink: #25231f;
  --muted: #686157;
  --line: #d8d0c3;
  --accent: #b93822;
  --accent-dark: #942d1c;
  --night: #262822;
  --white: #fffdf8;
  --page-width: 1160px;
  --gutter: clamp(22px, 5.5vw, 80px);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
}

::selection {
  color: var(--white);
  background: var(--accent-dark);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--night);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: 100%;
  border-bottom: 1px solid rgba(37, 35, 31, 0.12);
}

.header-inner,
.hero-inner,
.section-shell,
.contact-inner {
  width: min(100% - (var(--gutter) * 2), var(--page-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-size: 11px;
  letter-spacing: -0.05em;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}

nav a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover,
.social-links a:hover,
.text-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 79px);
  min-height: calc(100svh - 79px);
  align-items: center;
  padding: clamp(58px, 8vw, 112px) 0 clamp(60px, 7vw, 96px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(45px, 8vw, 108px);
}

.hero-copy {
  min-width: 0;
  max-width: 615px;
}

.project-index {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Iowan Old Style, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 500;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(48px, 6.2vw, 82px);
  letter-spacing: -0.065em;
  line-height: 0.99;
}

h1 em {
  color: var(--accent);
  font-weight: 500;
}

.hero-intro {
  max-width: 440px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 18px;
  justify-content: center;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-dark:hover {
  color: var(--white);
  background: var(--accent-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.portrait {
  width: 100%;
  max-width: 480px;
  min-width: 0;
  margin: 0;
  justify-self: end;
}

.portrait-image {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1;
  background: #d7c5ad;
  transform: rotate(1deg);
}

.portrait-image::before {
  position: absolute;
  z-index: -1;
  top: -14px;
  right: -14px;
  width: 40%;
  height: 40%;
  background: var(--accent);
  content: "";
}

.portrait img {
  position: absolute;
  inset: 14px;
  display: block;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.95) contrast(1.02);
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue span {
  color: var(--accent);
  font-size: 17px;
}

.work {
  padding-top: clamp(76px, 9vw, 116px);
  padding-bottom: clamp(40px, 5vw, 56px);
}

.section-heading {
  max-width: 680px;
  margin: 0 auto clamp(52px, 6.5vw, 76px);
  text-align: left;
}

.section-heading h2,
.about h2,
.contact h2 {
  max-width: 680px;
  margin-bottom: 13px;
  font-size: clamp(36px, 4.3vw, 57px);
  letter-spacing: -0.05em;
  line-height: 1.07;
}

.section-intro {
  max-width: 530px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.project {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
  padding: clamp(34px, 6vw, 68px) 0;
  border-bottom: 1px solid var(--line);
}

.project:last-child {
  border-bottom: 0;
}

.project::before {
  position: absolute;
  z-index: -1;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  background: var(--project-band);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.project-sharewell {
  --project-band: #faf3ef;
}

.project-talentio {
  --project-band: #f8f5ed;
}

.project-streem {
  --project-band: #f6f4f1;
}

.project-streamroot {
  --project-band: #f1f7f8;
}

.project-taketracker {
  --project-band: #f2f7f3;
}

.project:nth-child(even) .project-art {
  order: 2;
}

.project-art {
  position: relative;
  display: grid;
  min-height: 300px;
  min-width: 0;
  aspect-ratio: 1.23;
  place-items: center;
  overflow: hidden;
}

.project-art-sharewell,
.project-art-talentio,
.project-art-streem,
.project-art-streamroot,
.project-art-taketracker {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 32px);
}

.project-art-sharewell {
  background: #f0ddd2;
}

.art-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-logo-sharewell {
  display: block;
  width: min(82%, 410px);
  max-height: 125px;
  height: auto;
  margin: auto;
  object-fit: contain;
}

.project-art-talentio {
  background: #f1ead7;
}

.brand-logo-talentio {
  display: block;
  width: min(82%, 420px);
  max-height: 90px;
  height: auto;
  margin: auto;
  object-fit: contain;
}

.art-caption {
  padding-top: 14px;
  margin: 0;
  border-top: 1px solid rgba(37, 35, 31, 0.22);
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.project-art-streem {
  background: #e3e7f5;
}

.brand-logo-streem {
  display: block;
  width: min(88%, 470px);
  max-height: 92px;
  height: auto;
  margin: auto;
  object-fit: contain;
}

.project-art-streamroot {
  background: #daf2f5;
}

.streamroot-logo-frame {
  width: 100%;
  height: clamp(120px, 10vw, 136px);
  margin: auto;
  overflow: hidden;
}

.brand-logo-streamroot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-art-taketracker {
  background: #e0f0ed;
}

.taketracker-sticker {
  display: block;
  width: clamp(128px, 19vw, 188px);
  aspect-ratio: 1;
  flex: none;
  margin: auto;
  clip-path: circle(47.8% at 50% 50%);
}

.brand-logo-taketracker {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-copy {
  min-width: 0;
  max-width: 540px;
}

.project-gallery {
  grid-column: 1 / -1;
  align-self: stretch;
  padding-top: clamp(24px, 3vw, 34px);
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

.project-gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.gallery-kicker {
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-gallery-heading h4 {
  margin: 0;
  font-family: Iowan Old Style, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(23px, 2.5vw, 31px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.project-gallery-hint {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-shot {
  display: block;
  min-width: 0;
  color: var(--ink);
  cursor: zoom-in;
  text-decoration: none;
}

.project-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1.85;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  object-fit: cover;
  object-position: center;
}

.project-shot:focus-visible img {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.project-shot:hover img {
  border-color: var(--accent);
}

.project-shot-caption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 9px;
  font-size: 13px;
  font-weight: 650;
}

.project-shot-number {
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.screenshot-dialog:not([open]) {
  display: none;
}

.screenshot-dialog[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  color: var(--white);
  background: transparent;
}

.screenshot-dialog::backdrop {
  background: rgba(24, 23, 20, 0.44);
  backdrop-filter: blur(12px);
  animation: screenshot-backdrop-in 260ms cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

.screenshot-dialog.is-closing::backdrop {
  animation-name: screenshot-backdrop-out;
  animation-duration: 210ms;
}

.screenshot-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: fit-content;
  max-width: min(94vw, 1360px);
  max-height: 88vh;
  max-height: 88dvh;
  transform-origin: top left;
  transition: transform 260ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.screenshot-dialog.is-closing .screenshot-preview {
  transition-duration: 210ms;
}

.screenshot-dialog.is-animating .screenshot-preview {
  will-change: transform;
}

.screenshot-preview-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 1360px);
  max-height: 88vh;
  max-height: 88dvh;
  border-radius: 3px;
  object-fit: contain;
  box-shadow: 0 26px 88px rgba(0, 0, 0, 0.3);
}

.screenshot-preview-close {
  position: absolute;
  z-index: 1;
  top: clamp(10px, 1.6vw, 18px);
  right: clamp(10px, 1.6vw, 18px);
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 253, 248, 0.5);
  border-radius: 50%;
  color: var(--white);
  background: rgba(37, 35, 31, 0.68);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.screenshot-preview-close svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.screenshot-preview-close:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

@keyframes screenshot-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes screenshot-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.project-index {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 10px;
}

.project-index span {
  padding-inline: 4px;
  color: var(--accent);
}

.project h3 {
  margin-bottom: 8px;
  font-size: clamp(34px, 4vw, 47px);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.project h3 a {
  display: inline-flex;
  align-items: center;
  gap: 0.08em;
  color: inherit;
  text-decoration: none;
}

.project h3 a:hover {
  color: var(--accent-dark);
}

.project-link-arrow {
  display: inline-block;
  color: var(--accent);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 0.48em;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.project-summary {
  max-width: 470px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 15px;
}

.project-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.project-facts div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
}

.project-facts dt {
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.75;
  text-transform: uppercase;
}

.project-facts dd {
  max-width: 435px;
  margin: 0;
  color: #413e38;
  font-size: 13px;
  line-height: 1.6;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px);
  padding-top: 0;
  padding-bottom: clamp(70px, 9vw, 110px);
}

.about h2 {
  margin-top: 0;
  font-size: clamp(31px, 3.5vw, 45px);
}

.about-copy {
  max-width: 520px;
  align-self: end;
}

.about-copy p {
  margin-bottom: 21px;
  color: #413e38;
  font-family: Iowan Old Style, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.contact {
  color: var(--white);
  background: var(--night);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 45px;
  padding-top: clamp(54px, 8vw, 88px);
  padding-bottom: 22px;
}

.contact-main h2 {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: clamp(39px, 5.2vw, 68px);
}

.contact-email {
  color: #f28d70;
  font-size: clamp(17px, 2vw, 21px);
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color 160ms ease;
}

.contact-email:hover {
  color: #ffb198;
  text-decoration-color: currentColor;
}

.social-links {
  display: flex;
  align-self: end;
  gap: 25px;
  padding: 0 0 7px;
  margin: 0;
  list-style: none;
}

.social-links a {
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color 160ms ease;
}

.social-links a:hover {
  color: var(--white);
}

.site-footer {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(60px, 9vw, 105px);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 253, 248, 0.22);
  color: #d2cfc6;
  font-size: 10px;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-art {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
    gap: 36px;
  }

  .project {
    gap: 38px;
  }

  .project-facts div {
    grid-template-columns: 82px 1fr;
    gap: 10px;
  }

}

@media (max-width: 660px) {
  :root {
    --gutter: 22px;
  }

  .header-inner {
    min-height: 68px;
  }

  .wordmark {
    gap: 8px;
    font-size: 13px;
  }

  .wordmark-mark {
    width: 31px;
    height: 31px;
  }

  nav {
    gap: 17px;
  }

  nav a {
    font-size: 12px;
  }

  .hero {
    min-height: calc(100vh - 69px);
    min-height: calc(100svh - 69px);
    align-items: start;
    padding-top: 18px;
    padding-bottom: 30px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: calc(100vh - 117px);
    min-height: calc(100svh - 117px);
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  h1 {
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
    font-size: clamp(42px, 11.2vw, 60px);
  }

  .hero-intro {
    max-width: 400px;
    margin-bottom: 16px;
    font-size: 16px;
  }

  .portrait {
    width: 100%;
    max-width: min(260px, 29svh);
    align-self: center;
    margin-block-start: clamp(80px, 12svh, 104px);
    margin-block-end: 22px;
  }

  .portrait-image {
    aspect-ratio: 1;
  }

  .portrait img {
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
  }

  .portrait-image::before {
    top: -9px;
    right: -9px;
  }

  .scroll-cue {
    position: static;
    width: max-content;
    align-self: center;
    margin: 0 auto;
    transform: none;
  }

  .section-heading,
  .about {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading {
    margin-bottom: 44px;
  }

  .section-heading h2,
  .contact h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .project {
    grid-template-columns: 1fr;
    gap: 27px;
    padding: 34px 0 39px;
  }

  .project:nth-child(even) .project-art {
    order: 0;
  }

  .project-art {
    min-height: 0;
    aspect-ratio: 1.25;
  }

  .project-art-sharewell,
  .project-art-talentio,
  .project-art-streem,
  .project-art-streamroot,
  .project-art-taketracker {
    padding: 22px;
  }

  .project-gallery {
    grid-column: 1;
    padding-top: 23px;
    margin-top: 0;
  }

  .project-gallery-heading {
    display: block;
  }

  .project-gallery-hint {
    margin-top: 8px;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .brand-logo-talentio {
    width: 84%;
    max-height: 70px;
  }

  .brand-logo-streem {
    width: 88%;
    max-height: 72px;
  }

  .streamroot-logo-frame {
    height: clamp(92px, 25vw, 108px);
  }

  .taketracker-sticker {
    width: clamp(122px, 42vw, 166px);
  }

  .project-copy {
    max-width: none;
  }

  .project h3 {
    font-size: 39px;
  }

  .about {
    gap: 18px;
  }

  .about h2 {
    margin-top: 0;
  }

  .about-copy p {
    font-size: 19px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .social-links {
    margin-top: 26px;
  }

  .site-footer {
    margin-top: 55px;
  }
}

@media (max-width: 660px) and (max-height: 720px) {
  .portrait {
    margin-block-start: auto;
  }
}

@media (max-width: 900px) and (max-height: 520px) {
  .hero {
    min-height: calc(100vh - 79px);
    min-height: calc(100svh - 79px);
    align-items: center;
    padding-block: 12px 26px;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(22px, 4vw, 36px);
    min-height: 0;
  }

  .hero-copy {
    width: auto;
    max-width: 615px;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(38px, 10svh, 54px);
  }

  .hero-intro {
    margin-bottom: 14px;
    font-size: clamp(14px, 2.5svh, 16px);
    line-height: 1.45;
  }

  .button {
    min-height: 42px;
    padding-inline: 14px;
  }

  .hero-actions {
    gap: 18px;
  }

  .portrait {
    width: 100%;
    max-width: min(280px, 54svh);
    align-self: center;
    margin: 0;
  }

  .scroll-cue {
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: max-content;
    margin: 0;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }

  .screenshot-preview,
  .screenshot-dialog.is-closing .screenshot-preview,
  .screenshot-dialog::backdrop,
  .screenshot-dialog.is-closing::backdrop {
    transition: none;
    animation: none;
  }
}
