:root {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #231f20;
  background: #f4f4f4;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-y: scroll; }
body.overlay-open { overflow: hidden; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, article:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #f4f4f4;
  color: #231f20;
  opacity: 1;
  transition: opacity .3s ease-in-out;
  animation: loader-fallback 0s linear 6s forwards;
}
.site-loader.is-hidden { opacity: 0; pointer-events: none; }
.site-loader[data-theme="dark"] { background: #262626; }
.site-loader[data-theme="dark"] .site-loader-mark { filter: invert(1); }
.site-loader-mark {
  display: block;
  width: clamp(56px, 4vw, 72px);
  height: auto;
}
@keyframes loader-fallback { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.site-header {
  position: relative;
  z-index: 5;
  background: #f4f4f4;
}
.mobile-mark {
  height: 91px;
  display: grid;
  place-items: center;
  font-size: 60px;
  font-weight: 100;
  line-height: 1;
  letter-spacing: -.12em;
  -webkit-text-stroke: 1px #231f20;
  color: #231f20;
  -webkit-text-fill-color: transparent;
  padding-right: .12em;
}
.header-inner {
  min-height: 57px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.brand { display: none; text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 16px; }
.main-nav a, .main-nav button, .footer-links a, .footer-links button {
  border: 0;
  background: none;
  padding: 0;
  text-decoration: none;
  color: inherit;
}
.main-nav a, .main-nav button {
  font-size: 14px;
  line-height: 1.4;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav button:hover,
.main-nav a:focus-visible, .main-nav button:focus-visible {
  border-bottom-color: currentColor;
}
.social-link { margin-left: 2px; }

.work-section { scroll-margin-top: 0; }
.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0 8px;
}
.project-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--card-color, #777);
  color: var(--card-text, #fff);
  cursor: pointer;
  isolation: isolate;
}
.card-media, .card-media img, .card-placeholder, .card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.card-media img {
  object-fit: cover;
  transform: scale(1.02);
  filter: blur(5px);
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 24%), transparent 40%);
  pointer-events: none;
}
.project-card[data-tone="light"] .card-media::after {
  background: linear-gradient(180deg, rgb(255 255 255 / 40%), transparent 40%);
}
.card-placeholder {
  overflow: hidden;
  background:
    radial-gradient(circle at 62% 52%, rgb(255 255 255 / 20%), transparent 42%),
    linear-gradient(140deg, rgb(255 255 255 / 8%), rgb(0 0 0 / 18%)),
    var(--card-color, #777);
}
.card-placeholder::after {
  content: "";
  position: absolute;
  width: 65%;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  top: 28%;
  right: -12%;
  transform: rotate(-25deg);
}
.card-placeholder-label {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: rgb(255 255 255 / 66%);
  font-size: 10px;
  letter-spacing: .15em;
  z-index: 1;
}
.card-placeholder-number {
  position: absolute;
  right: 5%;
  bottom: -12%;
  color: rgb(255 255 255 / 12%);
  font-size: clamp(130px, 25vw, 360px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.08em;
  z-index: 0;
  user-select: none;
}
.card-shade {
  background: rgb(0 0 0 / 38%);
  opacity: 0;
  transition: opacity .3s ease;
}
.card-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px 12px 20px;
  transition: color .3s ease;
}
.card-title {
  max-width: 94%;
  margin: 0;
  font-size: clamp(20px, 2.75vw, 42px);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -.035em;
  text-shadow: 0 1px 10px rgb(0 0 0 / 40%);
}
.project-card[data-tone="light"] .card-title { text-shadow: none; }
.card-title span { display: block; }
.card-client { margin-top: .08em; }
.card-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.card-action {
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  padding: 0 0 1px;
  color: inherit;
  text-decoration: none;
  font-size: clamp(14px, 1.6vw, 20px);
  line-height: 1.2;
  white-space: nowrap;
}
.card-action:hover, .card-action:focus-visible { border-bottom-color: currentColor; }
.card-action::before {
  display: inline-block;
  content: "";
  margin-right: 7px;
  vertical-align: -1px;
}
.card-action--preview::before {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
}
.card-action--detail::before {
  width: 14px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 0 0 4px 4px;
  box-shadow: inset 6px 0 0 -5px currentColor;
}
.project-card:hover .card-shade,
.project-card.is-active .card-shade,
.project-card:focus-within .card-shade { opacity: 1; }
.project-card:hover .card-copy,
.project-card.is-active .card-copy,
.project-card:focus-within .card-copy { color: #fff; }
.project-card[data-tone="light"]:hover .card-title,
.project-card[data-tone="light"].is-active .card-title,
.project-card[data-tone="light"]:focus-within .card-title { text-shadow: 0 1px 10px rgb(0 0 0 / 40%); }
.project-card:hover .card-actions,
.project-card.is-active .card-actions,
.project-card:focus-within .card-actions {
  opacity: 1;
  transform: none;
}

.site-footer { margin-top: 64px; }
.site-footer, .info-footer, .project-detail-footer {
  background: #0e1adf;
  color: #fff;
}
.footer-inner {
  width: 100%;
  max-width: 1712px;
  min-height: 48px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
}
.footer-inner > span { margin-right: auto; }
.footer-links { display: flex; gap: 20px; }
.footer-links a, .footer-links button { border-bottom: 1px solid transparent; }
.footer-links a:hover, .footer-links button:hover { border-bottom-color: currentColor; }
.footer-inner small { font-size: inherit; white-space: nowrap; }

.info-panel, .project-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
  background: #fff;
  visibility: hidden;
  transition: transform .5s ease-in-out, visibility 0s linear .5s;
}
.info-panel { display: flex; flex-direction: column; transform: translateY(-100%); }
.project-panel { transform: translateX(100%); }
.info-panel.is-open, .project-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .5s ease-in-out, visibility 0s;
}
.info-layout, .detail-shell {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .3s ease-in-out, transform .3s ease-in-out;
}
.info-panel.is-open .info-layout,
.project-panel.is-open .detail-shell {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .15s;
}
.info-shell { flex: 1 0 auto; width: 100%; min-height: calc(100vh - 48px); padding: 0 16px 60px; }
.info-topbar {
  position: relative;
  min-height: 106px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  font-size: 14px;
}
.info-top-actions { display: none; }
.close-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: #231f20;
}
.close-icon::before, .close-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 26px;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
}
.close-icon::after { transform: rotate(-45deg); }
.info-close-icon { position: absolute; top: 9px; right: 6px; }
.info-layout { text-align: center; }
.info-intro {
  max-width: 330px;
  margin: 16px auto 48px;
  font-size: clamp(21px, 5.8vw, 26px);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.info-intro p { margin: 0 0 42px; }
.info-intro p:last-child { margin-bottom: 0; }
.info-details { max-width: 560px; margin: auto; }
.info-block { margin-bottom: 58px; }
.info-block h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.15;
}
.info-block h3 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 400;
}
.info-rule {
  display: block;
  width: 15px;
  height: 1px;
  margin: 18px auto 24px;
  background: currentColor;
}
.info-block p { max-width: 380px; margin: 0 auto 20px; font-size: 15px; line-height: 1.4; }
.info-block a, .info-social-list a { text-underline-offset: 3px; }
.contact-methods { display: grid; gap: 16px; margin-top: 30px; }
.contact-method { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: baseline; gap: 14px; font-size: 17px; }
.contact-method span { color: #777; font-size: 13px; }
.contact-method a { width: fit-content; overflow-wrap: anywhere; }
.info-social-list { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.info-footer { flex: 0 0 auto; width: 100%; }
.project-detail-footer { flex: 0 0 auto; width: 100%; }

.project-panel { z-index: 30; overflow: hidden; background: #f4f4f4; }
.project-loading {
  position: absolute;
  inset: 0 0 0 52px;
  z-index: 4;
  display: grid;
  place-items: center;
  background: #fff;
  opacity: 1;
  transition: opacity .3s ease-in-out;
}
.project-loading.is-hidden { opacity: 0; pointer-events: none; }
.project-loading img { display: block; width: 50px; height: auto; }
.project-panel[data-theme="dark"] .project-loading { background: #262626; }
.project-panel[data-theme="dark"] .project-loading img { filter: invert(1); }
.project-panel.is-loading .project-work-tab { z-index: 5; }
#project-detail {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}
.project-panel[data-theme="dark"] #project-detail {
  background: #262626;
  color: #f7f7f7;
}
.project-panel[data-theme="dark"] #project-detail { color-scheme: dark; }
.project-panel[data-theme="dark"] .detail-heading { border-bottom-color: #444; }
.project-panel[data-theme="dark"] .detail-description { color: #aaa; }
.project-panel[data-theme="dark"] .project-close { color: #f7f7f7; }
.project-work-tab {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  width: 52px;
  height: 100vh;
  border: 0;
  padding: 0;
  background: #f4f4f4;
  color: #231f20;
  transition: width .2s ease-in-out .3s;
}
.project-work-tab:hover,
.project-work-tab:focus-visible {
  width: 60px;
  transition-delay: 0s;
}
.project-work-tab span {
  display: block;
  transform: rotate(-90deg);
  font-size: 18px;
  white-space: nowrap;
}
.project-work-tab::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid #f4f4f4;
}
.project-close {
  position: fixed;
  top: 6px;
  right: 18px;
  z-index: 2;
}
.detail-shell { flex: 1 0 auto; width: calc(100% - 16px); max-width: 1200px; margin: 0 auto; padding: 0 0 60px; }
.detail-heading {
  padding: 28px 40px 27px;
  border-bottom: 1px solid #777;
  text-align: center;
}
.detail-heading h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}
.detail-category { margin: 2px 0 0; font-size: 13px; }
.detail-content { width: 100%; margin: auto; padding-top: 30px; text-align: center; }
.detail-content h2 {
  margin: 26px 0 16px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
}
.detail-description {
  max-width: 520px;
  margin: 0 auto 38px;
  padding: 0 18px;
  color: #777;
  font-size: 15px;
  line-height: 1.55;
}
.detail-gallery {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: min(var(--gallery-width, 960px), 960px);
  margin-inline: auto;
}
.detail-media-frame {
  width: 100%;
  min-width: 0;
}
.detail-image, .detail-video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
}
.detail-video:is(iframe) {
  aspect-ratio: 16 / 9;
}
.detail-media-placeholder {
  min-height: 240px;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #e9e9e9;
  color: #888;
}
.detail-media-placeholder span { font-size: 13px; letter-spacing: .16em; }
.detail-media-placeholder p { max-width: 280px; font-size: 14px; }
.detail-credits { padding: 50px 12px; }
.detail-credits h2 { margin: 0 0 20px; }
.detail-credits p { margin: 5px 0; }

.preview-dialog {
  width: min(90vw, calc(78vh * var(--preview-ratio, 1.777)), 1200px);
  max-width: none;
  max-height: 90vh;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.preview-dialog::backdrop { background: rgb(0 0 0 / 92%); }
.preview-dialog[open]:not(.is-closing) {
  animation: preview-enter .32s cubic-bezier(.2,.7,.2,1) both;
}
.preview-dialog[open]:not(.is-closing)::backdrop {
  animation: backdrop-enter .32s ease-out both;
}
.preview-dialog.is-closing { animation: preview-exit .24s ease-in both; }
.preview-dialog.is-closing::backdrop { animation: backdrop-exit .24s ease-in both; }
@keyframes preview-enter {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes preview-exit {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(12px) scale(.98); }
}
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-exit { from { opacity: 1; } to { opacity: 0; } }
.preview-close { position: absolute; top: -44px; right: 0; color: #fff; }
.preview-content video, .preview-content iframe {
  display: block;
  width: 100%;
  aspect-ratio: var(--preview-ratio, 1.777);
  border: 0;
  object-fit: contain;
  background: #222;
}
.preview-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}
.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #333;
  text-align: center;
}
.preview-mark {
  font-size: clamp(40px, 8vw, 90px);
  font-weight: 100;
  -webkit-text-stroke: 1px #fff;
  color: #fff;
  -webkit-text-fill-color: transparent;
}
.preview-placeholder p { margin: 20px; font-size: 14px; }
.preview-title { margin: 16px 0 0; text-align: center; }

@media (min-width: 768px) {
  .site-header {
    position: fixed;
    inset: 0 0 auto;
    height: 132px;
    background: linear-gradient(#f4f4f4 55%, rgb(244 244 244 / 0%));
  }
  .mobile-mark { display: none; }
  .header-inner {
    width: calc(100% - 62px);
    max-width: 1712px;
    min-height: 0;
    margin: auto;
    padding-top: 48px;
    align-items: baseline;
    justify-content: space-between;
  }
  .brand { display: block; font-size: 20px; line-height: 1.25; white-space: nowrap; }
  .brand-name { font-weight: 500; }
  .brand-tagline { font-weight: 400; transition: opacity .1s ease-in-out; }
  .main-nav { gap: 29px; }
  .main-nav a, .main-nav button { font-size: 20px; }
  .work-section { padding-top: clamp(260px, 24vw, 330px); scroll-margin-top: 100px; }
  .project-grid {
    grid-template-columns: repeat(16, minmax(0, 1fr));
    grid-auto-rows: clamp(235px, 22.6vw, 410px);
    gap: 12px;
    width: calc(100% - 62px);
    max-width: 1712px;
    margin: 0 auto;
  }
  .project-card { aspect-ratio: auto; grid-column: span 8; }
  .card-copy { padding: 17px 17px 26px; }
  .card-placeholder-label { right: 18px; bottom: 18px; }
  .site-footer { margin-top: 80px; }
  .footer-inner { padding-inline: 50px; font-size: 14px; }
  .info-shell { max-width: 1712px; margin: 0 auto; padding: 0 50px 80px; }
  .info-topbar { min-height: 100px; align-items: center; justify-content: space-between; padding: 0; font-size: 20px; }
  .info-top-actions { display: flex; gap: 30px; }
  .info-top-actions button { border: 0; border-bottom: 1px solid transparent; padding: 0; background: none; }
  .info-top-actions button:hover { border-bottom-color: currentColor; }
  .info-close-icon { display: none; }
  .info-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; text-align: left; }
  .info-intro { max-width: 700px; margin: 16px 0 0; font-size: clamp(32px, 2.85vw, 48px); }
  .info-intro p { margin-bottom: 42px; }
  .info-details { max-width: none; margin: 16px 0 0; }
  .info-block { margin-bottom: 62px; }
  .info-block h2 { font-size: clamp(32px, 2.85vw, 48px); }
  .info-block h3 { font-size: 20px; }
  .info-rule { margin: 14px 0 28px; }
  .info-block p { max-width: 600px; margin: 0 0 22px; font-size: 20px; }
  .contact-method { grid-template-columns: 54px minmax(0, 1fr); gap: 24px; font-size: 20px; }
  .contact-method span { font-size: 16px; }
  .info-social-list { align-items: flex-start; font-size: 20px; }
  .project-close { top: 34px; right: var(--project-close-right, 32px); }
  .detail-shell { width: calc(100% - 64px); padding-bottom: 100px; }
  .detail-heading { padding: 43px 60px 38px; }
  .detail-heading h1 { font-size: 42px; }
  .detail-category { font-size: 18px; }
  .detail-content h2 { margin-top: 48px; font-size: 34px; }
  .detail-description { margin-bottom: 50px; font-size: 19px; }
  .detail-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .detail-media-frame { grid-column: 1 / -1; }
  .detail-media-frame--half { grid-column: span 1; }
}

@media (min-width: 980px) {
  .project-grid { grid-auto-rows: clamp(255px, 22.6vw, 410px); }
  .project-card--small { grid-column: span 6; }
  .project-card--medium { grid-column: span 7; }
  .project-card--half { grid-column: span 8; }
  .project-card--wide { grid-column: span 9; }
  .project-card--large { grid-column: span 10; }
  .project-card--full { grid-column: 1 / -1; }
  .project-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .card-title { font-size: clamp(30px, 2.3vw, 42px); }
}

@media (max-width: 767px) {
  .project-loading { left: 34px; }
  #project-detail { margin-left: 34px; }
  .project-work-tab { width: 34px; }
  .project-work-tab:hover, .project-work-tab:focus-visible { width: 42px; }
  .project-work-tab span { font-size: 14px; }
  .project-work-tab::after {
    right: -6px;
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 6px;
  }
  .card-title { font-size: 21px; }
  .card-action { font-size: 14px; }
  .card-actions { gap: 18px; }
}
