:root {
  color-scheme: light;
  --ink: #20211f;
  --muted: #858680;
  --line: #e9e9e5;
  --paper: #fff;
  --page-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.page {
  width: min(100% - 96px, var(--page-width));
  margin: 0 auto;
}

.topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.topbar nav a {
  position: relative;
  padding: 10px 0;
  transition: color 180ms ease, opacity 180ms ease;
}

.topbar nav a,
.topbar nav button {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.topbar nav button {
  position: relative;
  padding: 10px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, opacity 180ms ease;
}

.topbar nav .contact-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 42px;
  padding: 0 13px 0 16px;
  border: 0;
  border-radius: 10px;
  background: #f5f5f2;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(32 33 31 / 5%), 0 2px 5px rgb(32 33 31 / 4%);
  transition: background 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.topbar nav .contact-trigger span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  background: #fff;
  color: #666761;
  font-size: 13px;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.topbar nav .contact-trigger::after {
  content: none;
}

.topbar nav .contact-trigger:hover,
.topbar nav .contact-trigger:focus-visible {
  background: #252622;
  color: #fff;
  opacity: 1;
  outline: none;
  box-shadow: 0 5px 14px rgb(32 33 31 / 14%);
}

.topbar nav .contact-trigger:hover span,
.topbar nav .contact-trigger:focus-visible span {
  transform: translate(1px, -1px);
  background: rgb(255 255 255 / 14%);
  color: #fff;
}

.topbar nav .contact-trigger:active {
  transform: scale(0.97);
}

.topbar nav a::after,
.topbar nav button::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.topbar nav a:hover,
.topbar nav a:focus-visible,
.topbar nav button:hover,
.topbar nav button:focus-visible {
  color: var(--ink);
  opacity: 0.68;
  outline: none;
}

.topbar nav a:hover::after,
.topbar nav a:focus-visible::after,
.topbar nav button:hover::after,
.topbar nav button:focus-visible::after {
  transform: scaleX(1);
}

.intro {
  padding: 70px 0 48px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.intro-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 25px;
}

.intro-copy {
  max-width: 430px;
  margin: 0;
  color: #777872;
  font-size: 14px;
  line-height: 1.7;
}

.availability {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: #666761;
  font-size: 11px;
}

.availability-dot {
  position: relative;
  display: block;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
}

.availability-dot::before,
.availability-dot::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.availability-dot::before {
  background: #7e9d76;
  animation: status-pulse 1.8s ease-in-out infinite;
}

.availability-dot::after {
  border: 1px solid #7e9d76;
  animation: status-sonar 1.8s ease-out infinite;
  pointer-events: none;
}

@keyframes status-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgb(126 157 118 / 25%);
  }

  50% {
    opacity: 0.72;
    box-shadow: 0 0 0 4px rgb(126 157 118 / 12%);
  }
}

@keyframes status-sonar {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.2);
  }
}

.work {
  padding-top: 19px;
  scroll-margin-top: 20px;
}

.work-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.work-heading h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

#project-count {
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px;
  padding: 4px;
  border: 1px solid #efefec;
  border-radius: 999px;
  background: #f8f8f6;
}

.filter-button {
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #777872;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  white-space: nowrap;
  transition:
    color 220ms ease,
    background 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 260ms ease,
    transform 180ms ease;
}

.filter-button:active {
  transform: scale(0.95);
}

.filter-button:hover,
.filter-button:focus-visible {
  color: var(--ink);
  outline: none;
}

.filter-button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(25 25 20 / 10%);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px 18px;
}

.project {
  min-width: 0;
  position: relative;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.project:hover,
.project:focus-within {
  z-index: 2;
  transform: translateY(-3px);
}

.project:hover .project-image,
.project:focus-within .project-image {
  transform: scale(1.07);
  box-shadow:
    0 0 0 1px rgb(130 151 255 / 32%),
    0 0 18px rgb(130 151 255 / 24%),
    0 0 34px rgb(87 202 255 / 17%),
    0 14px 30px rgb(25 25 20 / 16%);
}

.project[hidden] {
  display: none;
}

.project.is-entering {
  animation: project-enter 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--enter-delay, 0ms);
}

@keyframes project-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.975);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-image {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f1f0ec;
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 360ms ease;
}

.project-image::after {
  position: absolute;
  inset: 35% 0 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(transparent, rgb(20 20 18 / 68%));
  color: #fff;
  content: attr(data-title);
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: -0.035em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project:hover .project-image img,
.project:focus-within .project-image img {
  transform: none;
}

.project:hover .project-image::after,
.project:focus-within .project-image::after {
  opacity: 1;
  transform: translateY(0);
}

.project-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

.project-info h3 {
  overflow: hidden;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-info span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.project-type {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 78px;
  padding: 21px 0 27px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

footer a {
  color: var(--ink);
}

@media (max-width: 1000px) {
  .page {
    width: min(100% - 56px, var(--page-width));
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 40px, var(--page-width));
  }

  .topbar {
    min-height: 72px;
  }

  html {
    scroll-padding-top: 58px;
  }

  .topbar nav {
    gap: 22px;
    font-size: 12px;
  }

  .topbar nav .contact-trigger {
    min-height: 38px;
    gap: 9px;
    padding: 0 9px 0 12px;
    border-radius: 9px;
  }

  .topbar nav .contact-trigger span {
    width: 23px;
    height: 23px;
    border-radius: 6px;
  }

  .intro {
    padding: 54px 0 38px;
  }

  .intro-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-top: 19px;
  }

  .work-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 17px;
  }

  .filters {
    justify-content: flex-start;
    position: sticky;
    top: 0;
    z-index: 5;
    width: calc(100% + 40px);
    gap: 7px;
    overflow-x: auto;
    margin-left: -20px;
    padding: 10px 20px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: rgb(255 255 255 / 94%);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(12px);
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid #e9e9e5;
    background: #fff;
    color: #656660;
    font-size: 12px;
  }

  .filter-button[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
    box-shadow: none;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
  }

  .project {
    position: relative;
    padding: 0 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .project:hover,
  .project:focus-within {
    box-shadow: none;
  }

  .project-image {
    aspect-ratio: 1;
    border-radius: 4px;
  }

  .project-image::after {
    padding: 14px;
    font-size: 15px;
  }

  .project-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 10px 3px 0;
  }

  .project-info h3 {
    width: 100%;
    font-size: 12px;
  }

  .project-info span {
    font-size: 10px;
  }

  .project-type {
    margin: 4px 3px 0;
    font-size: 10px;
  }

  footer {
    margin-top: 55px;
  }
}

@media (max-width: 420px) {
  .page {
    width: min(100% - 32px, var(--page-width));
  }

  .filters {
    width: calc(100% + 32px);
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .topbar nav {
    gap: 16px;
    font-size: 11px;
  }

  .topbar nav .contact-trigger {
    min-height: 36px;
    gap: 7px;
    padding: 0 7px 0 10px;
  }

  .topbar nav .contact-trigger span {
    width: 21px;
    height: 21px;
  }

  .project-grid {
    gap: 10px;
  }
}

@media (hover: none) {
  .project:active .project-image {
    transform: none;
    box-shadow:
      0 0 0 1px rgb(130 151 255 / 30%),
      0 0 16px rgb(130 151 255 / 22%),
      0 0 26px rgb(87 202 255 / 15%),
      0 10px 22px rgb(25 25 20 / 14%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
}

.contact-dialog {
  width: min(100% - 32px, 560px);
  max-width: 560px;
  max-height: min(90dvh, 760px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgb(32 33 31 / 8%);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 90px rgb(32 33 31 / 22%);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1), overlay 260ms allow-discrete, display 260ms allow-discrete;
}

.contact-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .contact-dialog[open] {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

.contact-dialog::backdrop {
  background: rgb(23 24 22 / 38%);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 220ms ease, overlay 260ms allow-discrete, display 260ms allow-discrete;
}

.contact-dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .contact-dialog[open]::backdrop {
    opacity: 0;
  }
}

.contact-panel {
  padding: 32px;
}

.contact-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.contact-heading .eyebrow {
  margin-bottom: 10px;
}

.contact-heading h2 {
  margin: 0;
  font-size: clamp(25px, 5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.contact-close {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

.contact-close:hover {
  transform: rotate(90deg);
  background: #f5f5f2;
}

.contact-intro {
  margin: 12px 0 25px;
  color: #777872;
  font-size: 13px;
  line-height: 1.6;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 14px;
}

.contact-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: #5f605a;
  font-size: 11px;
  font-weight: 600;
}

.contact-field small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  min-height: 43px;
  padding: 11px 12px;
  border: 1px solid #e9e9e5;
  border-radius: 8px;
  outline: none;
  background: #fbfbfa;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-field textarea {
  min-height: 104px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #a2a39d;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #aaa99e;
  background: #fff;
  box-shadow: 0 0 0 3px rgb(126 157 118 / 12%);
}

.contact-field-wide {
  grid-column: 1 / -1;
}

.contact-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.contact-submit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.contact-submit {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  transition: background 180ms ease, transform 180ms ease;
}

.contact-submit:hover {
  transform: translateY(-1px);
  background: #454640;
}

.contact-submit:active {
  transform: scale(0.97);
}

.contact-error {
  margin: 14px 0 0;
  color: #a33b34;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .contact-dialog {
    width: calc(100% - 24px);
    max-height: 92dvh;
    border-radius: 14px;
  }

  .contact-panel {
    padding: 23px 20px 20px;
  }

  .contact-intro {
    margin: 10px 0 20px;
    font-size: 12px;
  }

  .contact-fields {
    gap: 14px 10px;
  }

  .contact-field {
    gap: 6px;
    font-size: 10px;
  }

  .contact-field input {
    min-height: 41px;
    padding: 10px;
    font-size: 11px;
  }

  .contact-field textarea {
    min-height: 90px;
    padding: 10px;
    font-size: 11px;
  }

  .contact-submit-row {
    align-items: flex-end;
    margin-top: 18px;
  }

  .contact-submit-row p {
    max-width: 160px;
  }

}

@media (max-width: 360px) {
  .contact-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-field-wide {
    grid-column: auto;
  }

  .contact-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-submit-row p {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-dialog,
  .contact-dialog::backdrop {
    transition-duration: 0.01ms;
  }
}

#toast-container > .toast {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgb(32 33 31 / 16%);
  font-family: Arial, Helvetica, sans-serif;
  opacity: 1;
}

#toast-container > .toast-success {
  background-color: #52734f;
}

#toast-container > .toast .toast-title {
  font-size: 12px;
  font-weight: 600;
}

#toast-container > .toast .toast-message {
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 520px) {
  #toast-container.toast-bottom-right {
    bottom: max(12px, env(safe-area-inset-bottom));
    right: auto;
    left: 50%;
    width: min(280px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px);
    transform: translateX(-50%);
  }

  #toast-container.toast-bottom-right > .toast {
    width: 100% !important;
    max-width: 100%;
    margin: 0 0 8px;
    padding: 11px 32px 11px 42px;
  }

  #toast-container > .toast .toast-title {
    font-size: 11px;
  }

  #toast-container > .toast .toast-message {
    font-size: 10px;
    line-height: 1.4;
  }
}
.work-empty { margin: 0; padding: 64px 20px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 14px; line-height: 1.7; }
.work-empty[hidden] { display: none; }
/* Give the four-column portfolio grid more horizontal room on desktop. */
@media (min-width: 1001px) {
  .work .project-grid {
    position: relative;
    left: 50%;
    width: min(calc(100vw - 48px), 1640px);
    transform: translateX(-50%);
  }
}
/* Preserve the full cover at its natural ratio without letterboxing. */
.work .project-image {
  aspect-ratio: auto;
  background: transparent;
}
.work .project-image img {
  width: 100%;
  height: auto;
}
.site-logo{display:block;max-width:190px;max-height:48px;width:auto;height:auto;object-fit:contain}.site-footer .footer-socials{display:flex;align-items:center;justify-content:center;gap:10px}.footer-socials a{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;color:var(--ink);transition:background .2s,border-color .2s}.footer-socials a:hover{background:#f3f4ef;border-color:#b5beb0}.footer-socials svg{width:17px;height:17px}@media(max-width:700px){.site-footer{flex-wrap:wrap;row-gap:18px}.site-footer .footer-socials{order:3;width:100%;justify-content:flex-start}.site-logo{max-width:150px;max-height:38px}}
/* Soft, staggered sonar rings around the contact action. */
.topbar nav .contact-trigger {
  position: relative;
  isolation: isolate;
}
.topbar nav .contact-trigger::before,
.topbar nav .contact-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border: 1.5px solid rgb(102 151 103 / 45%);
  border-radius: inherit;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transform-origin: center;
  transition: none;
  animation: contact-sonar 3.2s ease-out infinite;
  z-index: -1;
}
.topbar nav .contact-trigger::after {
  animation-delay: 1.6s;
}
@keyframes contact-sonar {
  0% { transform: scale(1, 1); opacity: .7; }
  65%, 100% { transform: scale(1.24, 1.65); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar nav .contact-trigger::before,
  .topbar nav .contact-trigger::after {
    content: none;
    animation: none;
  }
}
.contact-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.contact-submit:disabled{opacity:.6;cursor:wait}.contact-feedback{position:fixed;right:24px;bottom:24px;z-index:100;padding:18px 22px;max-width:min(420px,calc(100vw - 48px));margin:0;background:#edf5e9;border:1px solid #cedfc3;border-radius:12px;color:#38562d;font-size:13px;line-height:1.6}.contact-feedback[hidden]{display:none}
.contact-captcha{margin-top:18px;max-width:340px}
.contact-captcha-image{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.contact-captcha-image img{display:block;border:1px solid #cedfc3;border-radius:8px;width:170px;height:58px}
.contact-captcha-image button{padding:10px 12px;border:1px solid #cedfc3;border-radius:8px;background:#f2f6ed;color:#38562d;cursor:pointer;font:inherit;font-size:13px}
.contact-captcha-image button:disabled{opacity:.5;cursor:wait}
.contact-captcha input{letter-spacing:3px}
