/* Hallmark · theme: custom · genre: editorial · shape: portfolio · signature: revolving floral knot · material: interactive studio study */
/* Hallmark · pre-emit critique: P5 H4 E4 S4 R4 V4 · weakest: E, removed decorative copy to give the knot room */
/* Hallmark · waive 39b · the two poster buttons open case studies · Selected work uses each complete project image as the pointer target */
@font-face {
  font-family: Inter;
  src: url(./inter.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #f9f6ed;
  --ink: #181715;
  --hot: #c92a0c;
  --rule: #c8c5bb;
  --sans: Inter, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --edge: clamp(22px, 3.6vw, 72px);
}
* {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
  margin: 0;
  scroll-behavior: smooth;
}
body {
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.45 var(--sans);
  letter-spacing: -0.03em;
  word-break: keep-all;
}
main {
  max-width: 1520px;
  margin: auto;
}
a,
button {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}
button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  letter-spacing: inherit;
}
svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.symbols {
  display: none;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--hot);
  outline-offset: 4px;
}
p,
h1,
h2,
h3,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  min-width: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.hero {
  position: relative;
  height: clamp(680px, 100svh, 1100px);
  min-height: min(55vw, 836px);
  padding: 0 var(--edge);
  isolation: isolate;
}
header,
nav,
.cta,
.base,
.controls,
.scroll,
button {
  display: flex;
  align-items: center;
}
header,
.base {
  justify-content: space-between;
}
header {
  height: clamp(84px, 7.6vw, 136px);
  font-weight: 550;
  letter-spacing: -0.045em;
}
nav {
  gap: clamp(28px, 3vw, 60px);
}
.brand {
  display: flex;
}
.brand img {
  transition: transform 0.45s;
}
.brand:hover img {
  transform: rotate(90deg);
}
.location {
  position: absolute;
  left: 27%;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.location time {
  margin-left: 8px;
}
.cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: 40px;
  gap: 16px;
  padding: 12px 20px;
}
.cta svg {
  transform: rotate(-45deg);
  width: 19px;
}
nav a:not(.cta):hover,
.scroll:hover {
  color: var(--hot);
}
.cta:hover,
.controls button:hover {
  background: var(--hot);
  border-color: var(--hot);
  color: var(--paper);
}
h1 {
  font-size: min(17.46vw, 264px);
  white-space: nowrap;
  line-height: 0.95;
  letter-spacing: -0.09em;
  font-weight: 640;
  margin: 1.2vw 0 0 -0.057em;
  position: relative;
  width: max-content;
  transform-origin: left;
  z-index: 2;
  pointer-events: auto;
}
h1 sup {
  font-size: 0.224em;
  letter-spacing: -0.06em;
  position: absolute;
  left: 101%;
  top: 10%;
  font-weight: 550;
}
.art {
  position: absolute;
  width: min(54vw, 76svh, 880px);
  aspect-ratio: 1;
  left: 0;
  right: 0;
  margin: auto;
  top: calc(50% + min(8.1vw, 140px));
  translate: 0 -50%;
  cursor: grab;
  touch-action: pan-y;
}
.art:active {
  cursor: grabbing;
}
.art canvas,
.art img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: contain;
}
.art canvas {
  opacity: 0;
}
.art:has(canvas[style*="opacity: 1"]) img {
  visibility: hidden;
}
.base {
  position: absolute;
  bottom: 5.2%;
  left: var(--edge);
  right: var(--edge);
  align-items: end;
  pointer-events: none;
}
.base a,
.base button {
  pointer-events: auto;
}
.intro p {
  font-size: clamp(24px, 2.2vw, 42px);
  letter-spacing: -0.058em;
  line-height: 1.04;
  font-weight: 550;
}
.scroll {
  margin-top: 32px;
  gap: 8px;
  font-size: 15px;
}
.scroll svg {
  transform: rotate(90deg);
  width: 18px;
}
.controls {
  gap: 8px;
}
.controls button {
  width: 49px;
  height: 49px;
  border: 1px solid;
  border-radius: 50%;
  justify-content: center;
  transition:
    background 0.18s,
    color 0.18s;
}
.controls button:first-of-type svg {
  transform: rotate(180deg);
}
output {
  margin-right: 16px;
  font-variant-numeric: tabular-nums;
}
output span {
  margin: 0 2px;
  color: var(--ink);
}
@media (max-width: 760px) {
  .location {
    display: none;
  }
  .hero {
    height: clamp(680px, 94svh, 860px);
    min-height: 0;
  }
  header {
    height: 76px;
  }
  nav {
    gap: 20px;
    font-size: 14px;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .cta {
    padding: 12px 16px;
    gap: 8px;
  }
  .cta svg {
    width: 16px;
    height: 16px;
  }
  h1 {
    margin-top: 5vh;
    font-size: 17.15vw;
  }
  .art {
    width: min(100%, 54svh);
    left: 50%;
    right: auto;
    top: 50%;
    translate: -50% -50%;
  }
  .base {
    bottom: 5%;
  }
  .intro p {
    font-size: 21px;
  }
  .scroll {
    font-size: 13px;
    margin-top: 16px;
  }
  .controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .controls button {
    width: 43px;
    height: 43px;
  }
  output {
    grid-column: 1/-1;
    font-size: 14px;
    text-align: right;
    margin: 0 4px 4px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
:root {
  --mist: #c7d0c0;
  --blue: #2949e3;
  --white: #fffefa;
  --gray: #5e5c55;
  --shade: #10110f88;
  --shadow: #16191036;
  --serif: Georgia, "Times New Roman", serif;
}
@media (min-width: 761px) and (max-aspect-ratio: 1/1) {
  .art {
    width: 77%;
    top: 49%;
  }
  .hero {
    height: 96svh;
  }
  .location {
    left: 18%;
  }
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:active,
.cta:active {
  transform: scale(0.97);
}
.section,
footer {
  margin: 0 var(--edge);
  padding: clamp(64px, 9vw, 144px) 0;
  border-top: 1px solid var(--rule);
}
h2 {
  font-size: clamp(52px, 7.6vw, 148px);
  letter-spacing: -0.077em;
  font-weight: 570;
  line-height: 0.98;
}
.projects {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.poster {
  width: 100%;
  aspect-ratio: 1.12;
  overflow: clip;
  position: relative;
  justify-content: center;
  container-type: inline-size;
}
.note {
  background: var(--mist);
}
.apt {
  background: var(--blue);
}
.reader,
.estate {
  background: var(--white);
  width: 44%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: clip;
  box-shadow: 0 3cqw 7cqw var(--shadow);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.23, 1);
  pointer-events: none;
}
.reader {
  font-family: var(--serif);
  border-radius: 4cqw;
  padding: 4cqw 3cqw 7cqw;
  transform: rotate(-7deg);
  line-height: 1.3;
}
.reader img {
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
  margin: 4cqw 0 3cqw;
  border-radius: 50% 50% 0 0;
  filter: saturate(0.6);
}
.reader small {
  font: 550 1.9cqw var(--sans);
  letter-spacing: -0.03em;
}
.reader strong {
  font-size: 6cqw;
  font-weight: 400;
  letter-spacing: -0.06em;
}
.reader span {
  font-size: 2.4cqw;
}
.reader i {
  font-size: 2.2cqw;
  margin-top: 4cqw;
}
.estate {
  width: 78%;
  padding: 3cqw;
  align-items: start;
  text-align: left;
  border-radius: 1.2cqw;
  transform: rotate(5deg);
  color: var(--ink);
  letter-spacing: -0.05em;
}
.estate small {
  font-size: 2.4cqw;
  color: var(--blue);
  font-weight: 850;
}
.estate strong {
  font-size: 5.7cqw;
  letter-spacing: -0.065em;
  line-height: 1.12;
  margin: 5cqw 0 3cqw;
}
.estate span {
  width: 100%;
  font-size: 2cqw;
  padding: 1.5cqw 2cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--rule);
  border-radius: 6cqw;
}
.estate svg {
  width: 3cqw;
  height: 3cqw;
}
.estate img {
  width: 100%;
  margin-top: 2cqw;
  height: 24cqw;
  object-fit: cover;
  object-position: 50% 54%;
}
.poster:hover > span {
  transform: scale(1.06);
}
.caption,
.end,
.caseTop,
.contactLine,
.caseInfo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.caption {
  margin-top: 20px;
}
.caption svg {
  transform: rotate(-45deg);
  width: 32px;
  height: 32px;
}
h3,
.about summary {
  font-weight: 550;
  font-size: clamp(23px, 2vw, 40px);
  letter-spacing: -0.052em;
}
.caption p {
  color: var(--gray);
}
#studio {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 24px;
}
.about > p {
  font-size: clamp(24px, 2.5vw, 48px);
  line-height: 1.45;
  letter-spacing: -0.05em;
  margin-bottom: 60px;
}
.about details {
  border-top: 1px solid var(--rule);
  padding: 20px 0;
}
.about summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  align-items: center;
}
.about summary::-webkit-details-marker {
  display: none;
}
.about summary:after {
  content: "+";
}
.about details[open] summary:after {
  content: "−";
}
.about details p {
  max-width: 52ch;
  line-height: 1.8;
  color: var(--gray);
  margin: 16px 32px 12px 0;
}
footer h2 {
  font-size: min(18vw, 340px);
}
footer {
  padding-bottom: 32px;
}
.contactLine {
  margin: 40px 0 96px;
  font-size: clamp(19px, 2vw, 36px);
}
.contactLine a {
  font-size: 16px;
}
.end {
  font-size: 14px;
}
.end a {
  display: flex;
  gap: 8px;
}
.end svg {
  width: 16px;
  transform: rotate(-90deg);
}
dialog {
  border: 0;
  color: var(--ink);
  background: var(--paper);
  padding: 24px;
  width: min(92%, 740px);
  max-height: 92svh;
}
dialog::backdrop {
  background: var(--shade);
}
body:has(dialog[open]) {
  overflow-y: hidden;
}
.caseTop {
  margin-bottom: 20px;
}
.caseTop h2 {
  font-size: 36px;
}
.caseTop button {
  font-size: 36px;
  line-height: 1;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.caseInfo {
  margin-top: 24px;
  line-height: 1.7;
}
.caseInfo button {
  flex-shrink: 0;
  gap: 12px;
}
.caseInfo button:hover,
summary:hover,
.end a:hover {
  color: var(--hot);
}
#demo .poster {
  display: flex;
  aspect-ratio: auto;
  padding: 20px;
}
#demo .poster > span {
  transform: none;
}
#demo .reader {
  width: 38%;
}
@media (max-width: 760px) {
  .projects,
  #studio {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .projects {
    margin-top: 32px;
  }
  .caption {
    margin-top: 12px;
  }
  .caption p {
    font-size: 14px;
  }
  .about > p {
    margin-bottom: 40px;
  }
  .contactLine,
  .caseInfo {
    align-items: start;
    flex-direction: column;
  }
  .end {
    gap: 8px;
  }
  .end span:nth-child(2) {
    display: none;
  }
  .contactLine {
    margin: 24px 0 64px;
  }
  dialog {
    padding: 16px;
  }
  .caseTop h2 {
    font-size: 28px;
  }
  #demo .reader {
    width: 44%;
  }
  .about summary {
    font-size: 21px;
  }
}
@media (min-width: 1521px) {
  :root {
    --edge: 54px;
  }
  .art {
    width: min(790px, 74svh);
  }
}
@media (max-width: 360px) {
  nav {
    gap: 16px;
  }
  .cta {
    padding: 12px 12px;
  }
  .intro p {
    font-size: 18px;
  }
  .controls button {
    width: 40px;
    height: 40px;
  }
}
footer h2 {
  font-size: min(13vw, 196px);
}
.end a {
  align-items: center;
}
.caption {
  cursor: pointer;
}
.caption:hover svg {
  color: var(--hot);
}
@media (max-width: 760px) {
  .controls button {
    width: 44px;
    height: 44px;
  }
  .contactLine p {
    font-size: 17px;
  }
}
@media (max-width: 360px) {
  nav {
    gap: 12px;
  }
  .cta {
    gap: 4px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
}
.inquiry p {
  font-size: clamp(16px, 1.4vw, 24px);
}
.inquiry a.email {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  font-size: clamp(18px, 4vw, 52px);
  letter-spacing: -0.055em;
  border-bottom: 1px solid;
  line-height: 1.2;
  margin-top: 12px;
}
.inquiry .email svg {
  transform: rotate(-45deg);
  width: 0.8em;
  height: 0.8em;
}
.inquiry .email:hover {
  color: var(--hot);
}
@media (max-width: 760px) {
  .inquiry a.email {
    font-size: 6.7vw;
  }
}
