@font-face {
  font-family: 'Zoe';
  src: url('assets/font/Zoe-Regular.woff2') format('woff2'),
       url('assets/font/Zoe-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #fff;
}

body {
  color: #111;
  font-family: 'Zoe', Arial, Helvetica, sans-serif;
}

.ink-field {
  position: relative;
  isolation: isolate;
  width: 100vw;
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
  background: #fff;
}

.edge-rack {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.edge-rack--top,
.edge-rack--bottom {
  right: 0;
  left: 0;
  height: 0;
}

.edge-rack--top { top: 0; }
.edge-rack--bottom { bottom: 0; }

.edge-rack--right,
.edge-rack--left {
  top: 0;
  bottom: 0;
  width: 0;
}

.edge-rack--right { right: 0; }
.edge-rack--left { left: 0; }

.edge-slot {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: auto;
}

.edge-slot--top,
.edge-slot--bottom { left: var(--slot-position); }
.edge-slot--top { top: 0; }
.edge-slot--bottom { bottom: 0; }
.edge-slot--right,
.edge-slot--left { top: var(--slot-position); }
.edge-slot--right { right: 0; }
.edge-slot--left { left: 0; }

.ink-strip {
  --hover-reveal: 0px;
  position: absolute;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.ink-strip:not(:active) {
  transition: transform 280ms cubic-bezier(.22, .9, .32, 1);
}

.ink-strip:active { cursor: grabbing; }

.ink-strip:focus-visible {
  outline: 1px solid rgba(0, 0, 0, .72);
  outline-offset: 2px;
}

.ink-strip.is-automatic {
  transition: transform 1.15s cubic-bezier(.22, 1.45, .36, 1);
}

.ink-strip--top,
.ink-strip--bottom {
  left: 0;
  width: var(--strip-thickness);
  height: var(--strip-length);
}

.ink-strip--top {
  top: 0;
  transform: translate3d(-50%, calc(-100% + var(--visible-tip) + var(--reveal) + var(--hover-reveal)), 0);
}

.ink-strip--bottom {
  bottom: 0;
  transform: translate3d(-50%, calc(100% - var(--visible-tip) - var(--reveal) - var(--hover-reveal)), 0);
}

.ink-strip--right,
.ink-strip--left {
  top: 0;
  width: var(--strip-length);
  height: var(--strip-thickness);
}

.ink-strip--right {
  right: 0;
  transform: translate3d(calc(100% - var(--visible-tip) - var(--reveal) - var(--hover-reveal)), -50%, 0);
}

.ink-strip--left {
  left: 0;
  transform: translate3d(calc(-100% + var(--visible-tip) + var(--reveal) + var(--hover-reveal)), -50%, 0);
}

.ink-strip__texture {
  position: absolute;
  display: block;
  background-color: var(--ink-color);
  mix-blend-mode: multiply;
  -webkit-mask-image: url('assets/ink-strip-2.png');
  mask-image: url('assets/ink-strip-2.png');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.ink-strip--right .ink-strip__texture,
.ink-strip--left .ink-strip__texture { inset: 0; }
.ink-strip--right .ink-strip__texture { transform: scaleX(-1); }

.ink-strip--top .ink-strip__texture,
.ink-strip--bottom .ink-strip__texture {
  top: 50%;
  left: 50%;
  width: var(--strip-length);
  height: var(--strip-thickness);
  transform-origin: center;
}

.ink-strip--top .ink-strip__texture {
  transform: translate(-50%, -50%) rotate(90deg);
}

.ink-strip--bottom .ink-strip__texture {
  transform: translate(-50%, -50%) rotate(-90deg);
}

.construction-card {
  position: absolute;
  z-index: 20;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(62vw, 560px);
  justify-items: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  text-align: center;
}

.construction-logo {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.construction-card p {
  margin: clamp(19px, 3vh, 34px) 0 0;
  font-size: clamp(.94rem, 1.2vw, 1.2rem);
  letter-spacing: .01em;
  font-weight: 600;
  line-height: 1.2;
}

#construction-title {
  margin: clamp(19px, 3vh, 34px) 0 0;
  font-size: clamp(.94rem, 1.2vw, 1.2rem);
  letter-spacing: .01em;
  font-weight: 800;
}

.construction-card nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 12px;
  pointer-events: none;
}

.construction-card a {
  position: relative;
  color: inherit;
  font-size: clamp(.94rem, 1.56vw, 1.2rem);
  pointer-events: auto;
  text-decoration: none;
  font-weight: 600;
}

.construction-card a::after {
  position: absolute;
  right: 0;
  bottom: -.34em;
  left: 0;
  height: .42em;
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='6' viewBox='0 0 24 6'%3E%3Cpath d='M0 3 Q3 0 6 3 T12 3 T18 3 T24 3' fill='none' stroke='%23111' stroke-width='1.15' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: .95em .42em;
  opacity: 0;
  pointer-events: none;
}

.construction-card a:hover::after,
.construction-card a:focus-visible::after {
  opacity: 1;
  animation: link-wave .7s linear infinite;
}

@keyframes link-wave {
  to { background-position-x: .95em; }
}

@media (max-width: 680px) {
  .ink-field { min-height: 460px; }
  .construction-card { width: min(68vw, 430px); }
  .construction-card p,
  .construction-card a { font-size: clamp(1.01rem, 1.68vw, 1.29rem); }
}

@media (hover: hover) and (pointer: fine) {
  .ink-strip:hover { --hover-reveal: clamp(10px, 1.25vw, 22px); }
}

@media (prefers-reduced-motion: reduce) {
  .ink-strip.is-automatic { transition: none; }
  .construction-card a:hover::after,
  .construction-card a:focus-visible::after { animation: none; }
}
