@import url("/portfolio-layout.css");

.project-section { margin-bottom: clamp(68px, 13.7vw, 237px); }
.project-section + .project-section { margin-bottom: 0; }
.project-section h2 { margin-bottom: clamp(20px, 2.78vw, 48px); font-size: clamp(23px, 2.08vw, 36px); font-weight: 300; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.1vw, 54px) clamp(20px, 5vw, 87px); }
.project-card a { display: block; text-decoration: none; }
.project-cover { container-type: inline-size; position: relative; overflow: hidden; aspect-ratio: 719 / 421; background: #f1f1f1; }
.project-hover-title {
  position: absolute;
  z-index: 1;
  top: 62%;
  right: 0;
  max-width: 94%;
  transform: translateY(-50%);
  padding: .58em .85em;
  border: 2px solid #080808;
  background: #fff;
  color: #080808;
  font: 700 clamp(14px, 1.5vw, 26px)/1.2 Helvetica, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
  opacity: 0;
  pointer-events: none;
}
.project-card a:focus-visible .project-hover-title { opacity: 1; }
@media (hover: hover) {
  .project-cover:hover .project-hover-title { opacity: 1; }
}
.project-composition { position: relative; width: 719px; height: 421px; zoom: calc(tan(atan2(100cqw, 719px))); }
.project-cover .project-cover-layer { position: absolute; inset: 0; width: 719px; height: 421px; }
.project-title { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; padding-top: .55em; font-size: clamp(17px, 1.85vw, 32px); }
.project-title > span {
  padding-bottom: .22em;
  background:
    linear-gradient(#000, #000) left bottom / 0 1px no-repeat,
    linear-gradient(#e5e5e5, #e5e5e5) left bottom / 100% 1px no-repeat;
  transition: background-size 240ms ease-out;
}
.project-title small { font-size: max(.52em, 11px); color: #595959; }
.project-card a:is(:hover, :focus-visible) .project-title > span { background-size: 100% 1px, 100% 1px; }
@media (prefers-reduced-motion: reduce) {
  .project-title > span { transition: none; }
}
.portfolio-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: clamp(40px, 6.1vw, 105px); font-size: clamp(16px, 2.31vw, 40px); font-weight: 300; }
.portfolio-footer a { overflow-wrap: anywhere; text-decoration: none; }
.portfolio-footer a:hover { text-decoration: underline; }
.footer-social { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 38px); }
.footer-social img { width: clamp(24px, 3.25vw, 56px); height: auto; }
.case-layout { max-width: 1728px; margin-inline: auto; container-type: inline-size; overflow: clip; }
.case-canvas { position: relative; width: 1728px; height: calc(var(--case-height) - 278px); margin-top: -133px; zoom: calc(tan(atan2(100cqw, 1728px))); }
.case-mobile { display: none; }
.case-return { padding-top: 25px; }
.case-return a { text-underline-offset: .25em; }
.case-gate { width: min(90%, 560px); margin: clamp(45px, 9vw, 150px) auto; }
.case-gate h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 300; margin-bottom: 16px; }
.case-gate p { line-height: 1.55; margin-top: 10px; }
.case-gate form { display: grid; gap: 10px; margin-top: 25px; }
.case-gate input, .case-gate button { min-height: 48px; font: inherit; padding: 8px 12px; }
.case-gate button { color: white; background: #171717; border: 1px solid #171717; cursor: pointer; }
.case-gate .error { color: #a72323; }

@media (max-width: 740px) {
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-title { padding-top: 10px; }
  .case-layout { display: none; }
  .case-mobile { display: grid; gap: 22px; padding-top: 44px; }
  .case-mobile h1 { font-size: clamp(29px, 6.3vw, 43px); font-weight: 300; line-height: 1.1; }
  .case-mobile p { font-size: 17px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
  .mobile-media { display: grid; gap: 12px; }
  .mobile-media img { width: auto; max-height: 70vh; margin: auto; object-fit: contain; }
  .portfolio-footer { align-items: start; }
}

.project-cropped-cover { width: 100%; height: auto; }


.case-canvas .layout-48 { font-weight: 700; line-height: 1; }
.case-capabilities {
  padding-block: 16px;
  border-block: 1px solid #dedede;
}
.case-capabilities h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.case-capabilities ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-capabilities li {
  padding: 4px 9px;
  background: #f3f3f3;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.45;
}
