/* Narrow typography and print-registration layers, revision 02. */
@font-face {
  font-family: "Kasane Narrow";
  src: url("assets/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
:root { --display: "Kasane Narrow", "Arial Narrow", Arial, sans-serif; }
.hero-title > span {
  font-family: var(--display);
  font-weight: 600;
  font-synthesis: none;
  line-height: .86;
  letter-spacing: -.018em;
}
.hero-title .hero-kasane { font-size: clamp(110px, 21vw, 302px); }
.hero-title .hero-works { font-size: clamp(110px, 20vw, 288px); margin-top: 10px; }
.hero-title .letter-outline {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
  color: transparent;
  -webkit-text-stroke: 2px var(--paper);
}
.hero-works .letter-outline { -webkit-text-stroke-color: var(--red); }
/* Low-density displays need more coverage on diagonal and curved outlines.
   Use pixel density, not viewport width: a 4K screen may use desktop scaling. */
@media (max-resolution: 1.5dppx) {
  .hero-title .letter-outline { -webkit-text-stroke-width: 2.5px; }
}
.hero-title .period { font: inherit; display: inline; }
.section h2, .cover-word, .cover-index, .member-symbol, .service-number, .type-strip {
  font-family: var(--display);
  font-weight: 600;
  font-synthesis: none;
}
.section h2 { letter-spacing: .005em; line-height: 1; }
.hero-copy h1 { font-weight: 600; }
.hero-title { z-index: 2; }
.hero-copy { z-index: 2; }
.hero { padding-top: 31px; }
.hero-grid {
  background-image: linear-gradient(#ffffff09 1px, transparent 1px), linear-gradient(90deg, #ffffff09 1px, transparent 1px);
  background-size: 88px 88px;
}
.hero-halftone {
  position: absolute;
  top: 180px;
  left: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background-image: radial-gradient(circle, var(--red) 1.5px, transparent 1.8px);
  background-size: 7px 7px;
  opacity: .22;
  mask-image: radial-gradient(circle, #000 5%, transparent 71%);
  pointer-events: none;
  z-index: -2;
}
.print-marks { position: absolute; inset: 17px 19px 17px; pointer-events: none; z-index: 4; }
.print-marks i { position: absolute; width: 30px; height: 30px; color: #9a9a94; }
.print-marks i::before, .print-marks i::after { content: ""; position: absolute; background: currentColor; }
.print-marks i::before { width: 30px; height: 1px; left: 0; top: 7px; }
.print-marks i::after { height: 30px; width: 1px; left: 7px; top: 0; }
.print-marks i:nth-child(1) { top: 0; left: 0; }
.print-marks i:nth-child(2) { top: 0; right: 0; transform: rotate(90deg); }
.print-marks i:nth-child(3) { bottom: 0; right: 0; transform: rotate(180deg); }
.print-marks i:nth-child(4) { bottom: 0; left: 0; transform: rotate(270deg); }
.hero-art {
  inset: 112px 4% 74px 39%;
  transform: none;
  border: 0;
  overflow: visible;
  background: transparent;
}
.hero-art::after { display: none; }
.composite-sheets { position: absolute; inset: 0; isolation: isolate; }
.registration-sheet { position: absolute; inset: 0; border: 1px solid #a0a09a; pointer-events: none; }
.registration-sheet > span { position: absolute; bottom: 13px; right: 15px; font-size: 12px; letter-spacing: 1.5px; background: #101010e8; padding: 3px 8px; }
.sheet-back {
  transform: translate(-40px, 26px) rotate(-6deg);
  background-image: linear-gradient(#ffffff10 1px, transparent 1px), linear-gradient(90deg, #ffffff10 1px, transparent 1px);
  background-size: 44px 44px;
  border-color: #70706a;
  z-index: 0;
}
.sheet-back > span { bottom: 35px; }
.sheet-tone {
  transform: translate(23px, -17px) rotate(4deg);
  background-image: radial-gradient(#f34b40a6 1px, transparent 1.3px);
  background-size: 6px 6px;
  border-color: var(--red);
  opacity: .62;
  z-index: 1;
}
.sheet-tone > span { top: 13px; bottom: auto; color: var(--red); }
.art-fragments { position: absolute; inset: 0; z-index: 2; }
.hero-art .fragment {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: none;
  opacity: .94;
  animation-duration: 4.4s;
  animation-timing-function: cubic-bezier(.19, 1, .22, 1);
  animation-iteration-count: 1;
  animation-fill-mode: both;
}
.fragment-city { clip-path: polygon(0 0, 44% 0, 30% 100%, 0 100%); animation-name: compose-city; }
.fragment-character { clip-path: polygon(43.9% 0, 78% 0, 66% 100%, 29.9% 100%); animation-name: compose-character; }
.fragment-eye { clip-path: polygon(77.9% 0, 100% 0, 100% 100%, 65.9% 100%); animation-name: compose-eye; }
.art-fragments::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #101010bd, transparent 45%), linear-gradient(0deg, #101010 0%, transparent 27%);
}
.sheet-front { z-index: 3; border-color: #ffffff60; }
.sheet-front::before, .sheet-front::after { content: ""; position: absolute; inset: -10px; pointer-events: none; background: linear-gradient(var(--paper), var(--paper)) left 9px top / 1px 23px no-repeat, linear-gradient(var(--paper), var(--paper)) left top 9px / 23px 1px no-repeat, linear-gradient(var(--paper), var(--paper)) right 9px bottom / 1px 23px no-repeat, linear-gradient(var(--paper), var(--paper)) right bottom 9px / 23px 1px no-repeat; }
.sheet-front::after { transform: scaleX(-1); }
.sheet-front > span { bottom: 53px; }
.registration-cross { position: absolute; top: 17px; right: 18px; width: 16px; height: 16px; border: 1px solid var(--red); border-radius: 50%; }
.registration-cross::before, .registration-cross::after { content: ""; position: absolute; background: var(--red); }
.registration-cross::before { width: 28px; height: 1px; left: -7px; top: 6px; }
.registration-cross::after { height: 28px; width: 1px; top: -7px; left: 6px; }
.hero-art .art-caption { transform: none; right: 10px; bottom: 13px; z-index: 4; max-width: 85%; font-size: 12px; }
@keyframes compose-city { 0%, 12% { transform: translate(-54px, 35px) rotate(-5deg); opacity: .28; } 75%, 100% { transform: none; opacity: .94; } }
@keyframes compose-character { 0%, 18% { transform: translate(0, -36px) rotate(2deg); opacity: .4; } 80%, 100% { transform: none; opacity: .94; } }
@keyframes compose-eye { 0%, 24% { transform: translate(48px, 24px) rotate(5deg); opacity: .3; } 85%, 100% { transform: none; opacity: .94; } }
.section { position: relative; }
.section::before, .section::after { content: ""; position: absolute; pointer-events: none; top: 35px; width: 27px; height: 27px; opacity: .6; background: linear-gradient(var(--muted), var(--muted)) left 8px top / 1px 26px no-repeat, linear-gradient(var(--muted), var(--muted)) left top 8px / 26px 1px no-repeat; }
.section::before { left: 20px; }
.section::after { right: 20px; transform: rotate(90deg); }
.services {
  background-image: radial-gradient(#ffffff1a 1.1px, transparent 1.4px);
  background-size: 7px 7px;
}
.services .service-row { background: linear-gradient(90deg, #15151500, #151515f5 12%, #151515f5 96%, #15151500); }
.section-head { position: relative; z-index: 1; }
.work-cover { border-width: 2px; }
.cover-three { background-image: radial-gradient(#ffffff2e 1.2px, transparent 1.5px); background-size: 6px 6px; }
.cover-three .cover-word { background: #1d1d1dd9; }
.member::after { content: ""; position: absolute; pointer-events: none; top: 52px; right: 12px; width: 104px; height: 104px; border: 1px solid #ffffff30; box-shadow: 10px -10px 0 -1px var(--bg), 10px -10px 0 0 #f34b4080, 20px -20px 0 -1px var(--bg), 20px -20px 0 0 #ffffff30; transform: rotate(-6deg); background-image: radial-gradient(#ffffff42 1px, transparent 1.2px); background-size: 5px 5px; z-index: -1; }
@media (min-width: 1600px) {
  .hero-title .hero-kasane { font-size: 310px; }
  .hero-title .hero-works { font-size: 294px; }
}
@media (max-width: 1050px) {
  .hero-art { inset: 105px 5% 85px 36%; }
  .sheet-back { transform: translate(-24px, 21px) rotate(-5deg); }
  .sheet-tone { transform: translate(16px, -13px) rotate(3deg); }
}
@media (max-width: 720px) {
  .hero { padding-top: 25px; min-height: 865px; }
  .hero-title .hero-kasane { font-size: 27vw; }
  .hero-title .hero-works { font-size: 26vw; }
  .hero-title .letter-outline { -webkit-text-stroke-width: 2px; }
  .hero-art { inset: 275px 9% 190px 13%; }
  .hero-art .fragment { object-position: 60% center; }
  .hero-copy { margin-top: 205px; }
  .hero-copy p { background: #101010e8; }
  .hero-art .art-caption { bottom: 12px; left: 15%; right: 6px; max-width: none; font-size: 12px; line-height: 1.5; }
  .sheet-front > span { bottom: 81px; right: 6px; }
  .sheet-tone > span { top: 9px; right: 5px; }
  .registration-sheet > span { letter-spacing: .5px; font-size: 12px; }
  .sheet-back { transform: translate(-17px, 20px) rotate(-5deg); }
  .sheet-tone { transform: translate(13px, -12px) rotate(4deg); }
  .print-marks { inset: 9px 7px 12px; }
  .print-marks i { transform: scale(.7); }
  .print-marks i:nth-child(2) { transform: rotate(90deg) scale(.7); }
  .print-marks i:nth-child(3) { transform: rotate(180deg) scale(.7); }
  .print-marks i:nth-child(4) { transform: rotate(270deg) scale(.7); }
  .hero-halftone { top: 110px; left: -200px; }
  .section::before { left: 7px; }
  .section::after { right: 7px; }
  .section::before, .section::after { top: 21px; }
  .cover-word { font-size: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .fragment { animation: none; transform: none; opacity: .94; }
}

/* Revision 03: real project still, intermediate display weight, in-page contact. */
.work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-image { padding: 0; aspect-ratio: 16 / 9; }
.work-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-image-portrait { background: #101010; }
.work-image-portrait img { object-fit: contain; }
.portfolio-entry { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 28px; border: 1px solid var(--line); background: #191919; }
.portfolio-entry .section-index { margin-bottom: 12px; }
.portfolio-entry h3 { font-size: clamp(20px, 2.5vw, 30px); }
.portfolio-entry p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.portfolio-arrow { font-size: 40px; color: var(--red); }
.portfolio-entry:hover { border-color: var(--red); }
.portfolio-entry:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.work-card, .contact > *, .form-line > * { min-width: 0; }
.work-card h3, .work-card p, .email { overflow-wrap: anywhere; }
.image-copyright { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; background: #101010d9; color: #fff; font: 12px/1.5 Arial, sans-serif; }
.hero-art .art-caption { color: #fff; background: #101010d9; padding: 4px 8px; }
.form-honey { display: none !important; }
.submit:disabled { opacity: .55; cursor: wait; }
.header-contact > span:first-child { padding-left: 0; color: inherit; }
.contact #contact-title { font-family: var(--body); font-size: clamp(30px, 3.8vw, 52px); font-weight: 600; line-height: 1.3; }
.inquiry-example, .inquiry-template { margin-top: 24px; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.inquiry-example { border-left: 3px solid var(--red); }
.inquiry-example h3, .inquiry-template h3 { font-size: 17px; line-height: 1.7; }
.inquiry-example p, .inquiry-template p { font-size: 14px; line-height: 1.9; color: var(--muted); margin-top: 10px; }
.inquiry-template { margin: 0 0 24px; }
.template-button { display: block; width: 100%; margin-top: 16px; min-height: 46px; padding: 12px; border: 1px solid var(--paper); background: transparent; color: var(--paper); font-size: 14px; line-height: 1.5; }
.template-button:hover { border-color: var(--red); color: var(--red); }
.template-status:empty { display: none; }
#inquiry-message { margin-top: -12px; margin-bottom: 20px; }
#form-status { min-height: 1.5em; font-size: 14px; line-height: 1.7; }
#form-status[data-state="error"] { color: #ff998f; }
#form-status[data-state="success"] { color: #d4e8d2; }
footer details a { text-decoration: underline; font-size: 14px; }
@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
  .header { height: auto; min-height: 78px; flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .portfolio-entry { padding: 20px; gap: 12px; }
  .portfolio-entry .section-index { font-size: 11px; letter-spacing: .5px; }
  .language button { min-width: 36px; min-height: 44px; }
  input, textarea { font-size: 16px; }
  .email { font-size: clamp(16px, 5vw, 20px); }
  .hero-art .fragment { object-position: center; }
}
