/* TWO / Wild Hunt-inspired editorial footer.
   All styles are scoped to this component so the existing page stays intact. */
.twof-root {
  --twof-bg: #25282D;
  --twof-ink: #F1F1EE;
  --twof-accent: #E6C75E;
  --twof-font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --twof-mono: "JetBrains Mono", ui-monospace, monospace;
  --twof-pad: clamp(18px, 3.2vw, 48px);
  --twof-ease: cubic-bezier(.65, 0, .2, 1);
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  overflow: hidden;
  width: 100%;
  height: min(100svh, 930px);
  min-height: 740px;
  background: var(--twof-bg);
  color: var(--twof-ink);
  font-family: var(--twof-font);
  -webkit-font-smoothing: antialiased;
}
.twof-root, .twof-root * { box-sizing: border-box; }
.twof-picture { position: absolute; left: 0; top: 0; width: 100%; height: 60%; z-index: 0; overflow: hidden; }
.twof-picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 50% 27%; max-width: none;
}
.twof-painting { filter: saturate(.72) contrast(1.05); }
.twof-tint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(37,40,45,.06), rgba(37,40,45,.2) 58%, rgba(37,40,45,.55));
}
.twof-dither { position: absolute; top: 0; left: 0; display: block; max-width: none; image-rendering: pixelated; }
.twof-picture .twof-cutout {
  z-index: 2; filter: none; pointer-events: none;
  clip-path: inset(0 0 100% 0); transition: clip-path 1.1s linear .08s;
}
.twof-root.is-in .twof-picture .twof-cutout { clip-path: inset(0 0 0 0); }
.twof-grain {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  max-width: none; z-index: 3; pointer-events: none; mix-blend-mode: overlay;
}
.twof-marks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.twof-marks text { font-family: var(--twof-mono); font-size: 9px; letter-spacing: .12em; fill: var(--twof-ink); }
.twof-marks .twof-fade { opacity: 0; transition: opacity .6s var(--twof-ease); transition-delay: var(--delay,0s); }
.twof-root.is-in .twof-marks .twof-fade { opacity: 1; }
.twof-word { position: absolute; top: 0; left: 0; display: block; max-width: none; z-index: 5; pointer-events: none; }
.twof-swash { position: absolute; top: 0; left: 0; overflow: visible; z-index: 6; pointer-events: none; }
.twof-swash path {
  fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.twof-swash .twof-cut { stroke: var(--twof-bg); stroke-width: 6; }
.twof-swash .twof-pen { stroke: var(--twof-ink); stroke-width: 1.25; }
.twof-root.is-in .twof-swash path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.35s var(--twof-ease) 1.05s; }
.twof-vert, .twof-foot { font-size: 10px; line-height: 1.55; letter-spacing: .16em; text-transform: uppercase; }
.twof-vert {
  position: absolute; top: 42%; height: 33%; z-index: 7; margin: 0; max-width: 8em;
  display: flex; writing-mode: vertical-rl; overflow: hidden; opacity: .88;
}
.twof-vert.twof-left { left: var(--twof-pad); transform: rotate(180deg); }
.twof-vert.twof-right { right: var(--twof-pad); }
.twof-wipe { clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--twof-ease); transition-delay: var(--delay,0s); }
.twof-vert.twof-wipe { clip-path: inset(100% 0 0 0); }
.twof-root.is-in .twof-wipe { clip-path: inset(0 0 0 0); }
.twof-foot {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 8;
  padding: 0 var(--twof-pad) 20px;
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)) auto;
  gap: 0 22px; align-items: start;
}
.twof-column h3 { margin: 0 0 .4em; font: inherit; opacity: .56; }
.twof-column ul { list-style: none; margin: 0; padding: 0; }
.twof-column li + li { margin-top: 3px; }
.twof-column a, .twof-up {
  color: inherit; text-decoration: none; opacity: .9; background: none;
  border: 0; padding: 0; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  background-image: linear-gradient(var(--twof-accent),var(--twof-accent));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: opacity .25s ease, background-size .35s var(--twof-ease);
}
.twof-column a:hover, .twof-up:hover { opacity: 1; background-size: 100% 1px; }
.twof-column a:focus-visible, .twof-up:focus-visible { outline: 2px solid var(--twof-accent); outline-offset: 4px; }
.twof-up { justify-self: end; white-space: nowrap; }
.twof-up::before { content: "↑"; display: inline-block; margin-right: .5em; transition: transform .3s var(--twof-ease); }
.twof-up:hover::before { transform: translateY(-3px); }
.twof-legal {
  grid-column: 1 / -1; margin-top: 22px; padding-top: 12px;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); gap: 20px; align-items: end;
  border-top: 1px dotted rgba(241,241,238,.36);
  font-size: 9.5px; letter-spacing: .1em; line-height: 1.6; text-transform: none;
}
.twof-legal p { margin: 0; opacity: .7; }
.twof-signature { display: flex; align-items: center; gap: 12px; }
.twof-signature span { opacity: .84; white-space: nowrap; }
.twof-signature svg { display: block; width: 15px; height: 15px; fill: none; stroke: var(--twof-accent); stroke-width: 1.1; }
.twof-sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@container (max-width: 960px) {
  .twof-foot { grid-template-columns: repeat(4,minmax(0,1fr)); row-gap: 12px; }
  .twof-up { grid-column: 1 / -1; justify-self: start; }
}
@container (max-width: 720px) {
  .twof-vert { display: none; }
  .twof-foot { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 13px; padding-bottom: 15px; }
  .twof-legal { grid-template-columns: minmax(0,1fr); gap: 8px; margin-top: 10px; }
  .twof-marks .twof-ticks text { display: none; }
}
@media (max-width: 720px) {
  .twof-root { height: 850px; min-height: 850px; }
  .twof-picture { height: 52%; }
  .twof-column li + li { margin-top: 2px; }
}
@media (max-width: 380px) {
  .twof-root { height: 900px; min-height: 900px; }
  .twof-foot { column-gap: 10px; font-size: 9px; }
  .twof-legal p { font-size: 8px; }
}
@media (prefers-reduced-motion:reduce) {
  .twof-marks .twof-fade, .twof-wipe, .twof-swash path,
  .twof-column a, .twof-up, .twof-up::before, .twof-picture .twof-cutout { transition: none !important; }
}
