/* Potomy site styles. Sizes and colors are copied from the old Wix site.
   Wide screens use the Wix 980px layout; narrow screens stack the parts. */

/* Stand-in for Wix's "Adobe Caslon Semibold" (a paid font): Crimson Text SemiBold,
   always semibold whatever weight the text asks for, like the original. */
@font-face {
  font-family: "Caslon Semibold Sub"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/crimson-text-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Caslon Semibold Sub"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/crimson-text-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #211d1d;          /* main dark background */
  --bg-deep: #0d0c0c;     /* credits pages */
  --header: #252525;
  --band: #323232;        /* "THINGS I MAKE" / "INFORMATION" bars */
  --drop: #1e1b1b;        /* menu drop-down */
  --menu: #b2b2b2;
  --white: #ffffff;
  --tan: #b4a08c;         /* link hover */
  --gold: #c99a6a;
  --line: #4c4646;
  --f-corm: "Cormorant Garamond", serif;
  --f-play: "Playfair Display", serif;
  --f-caslon: "Caslon Semibold Sub", serif;
  --f-caudex: "Caudex", serif;
  --f-futura: "Jost", sans-serif;
  --f-avenir: "Nunito Sans", sans-serif;
  --header-h: 43px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--f-corm);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h); background: var(--header);
}
.header-inner { position: relative; width: 980px; height: 100%; margin: 0 auto; }
.logo {
  position: absolute; left: 24px; top: 9px;
  font: 300 20px/28px var(--f-corm); color: var(--white); letter-spacing: 0;
}
.site-nav { position: absolute; left: 544px; top: 8px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; }
.site-nav > ul > li { position: relative; text-align: center; }
.site-nav > ul > li:nth-child(1) { width: 80px; }
.site-nav > ul > li:nth-child(2) { width: 100px; }
.site-nav > ul > li:nth-child(3) { width: 91px; }
.site-nav a {
  display: block; padding: 3px 5px;
  font: 300 15px/21px var(--f-corm); color: var(--menu);
  text-decoration: none; transition: color .4s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--white); }
.site-nav .sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 100%; padding: 4px 0; background: var(--drop);
  white-space: nowrap; visibility: hidden; opacity: 0; transition: opacity .2s;
}
.site-nav .sub a { padding: 4px 14px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { visibility: visible; opacity: 1; }
.menu-toggle { display: none; }

main { padding-top: var(--header-h); }
.site-footer { height: 141px; background: var(--bg); }

/* ---------- Wix-style free placement ---------- */
.wrap { position: relative; width: 980px; margin: 0 auto; }
.abs { position: absolute; left: var(--x); top: var(--y); width: var(--w); }

/* ---------- rich text copied from Wix ---------- */
.rt { font-weight: 300; overflow-wrap: break-word; }
.rt p, .rt h1, .rt h2, .rt h3, .rt h4, .rt h5, .rt h6 { margin: 0; font-weight: inherit; }
.rt ul, .rt ol { margin: 0; padding-left: 1.3em; }
.rt li { padding-bottom: 2px; }
.rt a { color: inherit; text-decoration: none; }
.rt a:hover { text-decoration: underline; }
.font_0 { font: 400 22px/1.41em var(--f-play); color: #0d0c0c; }
.font_1 { font: 300 14px/1.79em var(--f-avenir); color: #0d0c0c; }
.font_2 { font: 400 28px/1.375em var(--f-play); color: #0d0c0c; }
.font_3 { font: 400 88px/1.2em var(--f-play); color: #0d0c0c; }
.font_4 { font: 400 72px/1.25em var(--f-play); color: #0d0c0c; }
.font_5 { font: 400 50px/1.34em var(--f-play); color: #0d0c0c; }
.font_6 { font: 400 40px/1.35em var(--f-play); color: #0d0c0c; }
.font_7 { font: 300 20px/1.67em var(--f-futura); color: #0d0c0c; }
.font_8 { font: 300 18px/1.75em var(--f-futura); color: #0d0c0c; }
.font_9 { font: 300 15px/1.875em var(--f-futura); color: #0d0c0c; }
.font_10 { font: 300 14px/1.79em var(--f-avenir); color: #0d0c0c; }

/* ---------- home ---------- */
.hero {
  position: relative; height: 663px; overflow: hidden;
  background: #4c4646 url("../images/bg-dark.webp") center / cover fixed;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, .11) 0%, rgba(197, 192, 192, .7) 100%);
}
.hero-fog { position: absolute; left: 0; right: 0; top: -10px; height: 888px; display: flex; }
.hero-fog div { flex: 1 1 50%; background: center / cover no-repeat; }
.hero-creature {
  position: absolute; left: calc(50% - 168px); top: 101px;
  width: 346px; height: 425px; object-fit: cover;
}
.band { height: 71px; background: var(--band); overflow: hidden; }
.band-title {
  margin: 0; padding-top: 15px; text-align: center;
  font: 700 30px/41px var(--f-corm); letter-spacing: .3px; color: var(--white);
}
.reveal { opacity: 0; transform: translateX(-60vw); }
.reveal.shown { opacity: 1; transform: none; transition: transform 1.2s cubic-bezier(.165, .84, .44, 1), opacity 1.2s ease; }

.strip { height: 470px; padding-top: 18px; overflow: hidden; background: var(--bg); }
.strip-track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.strip-item { position: relative; height: 468px; flex: none; cursor: pointer; }
.strip-item img { height: 100%; width: auto; max-width: none; object-fit: cover; }

.about { background: var(--bg); }
.about .wrap { height: 661px; }
.social { display: flex; }
.social a {
  width: 140px; height: 47px; display: flex; align-items: center; justify-content: center;
  font: 300 20px var(--f-corm); color: var(--white); text-decoration: none;
  padding-right: 5.5px; border-radius: 20px; transition: color .2s;
}
.social a:hover { color: var(--tan); font-weight: 700; }

/* ---------- gallery hover captions ---------- */
.cap {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; padding: 16px;
  text-align: center; opacity: 0; transition: opacity .3s ease;
}
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; }
.cap-title { font: 300 20px/1.3 var(--f-corm); color: var(--gold); }
.cap-desc { font: 300 15px/1.4 var(--f-corm); color: var(--white); white-space: pre-line; }

/* ---------- projects page ---------- */
.patreon-strip { height: 512px; background: #282626 center / cover no-repeat; }
.patreon-panel { position: absolute; left: 596px; top: 0; width: 386px; height: 512px; background: #282626; }
.btn-white {
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: #0d0c0c; text-decoration: none;
  font: 300 15px/1 var(--f-futura); transition: background .2s, color .2s;
}
.btn-white:hover { background: #ff6700; color: var(--white); }
.hslider { position: relative; height: 472px; }
.hslider-track {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none;
}
.hslider-track::-webkit-scrollbar { display: none; }
.hslider .tile { flex: 0 0 353px; height: 472px; scroll-snap-align: start; }
.tile { display: block; overflow: hidden; }
.tile:not(.abs) { position: relative; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.hov .cap { background: rgba(76, 70, 70, .6); }
.hov .cap-title { color: var(--white); font: 800 22px/1.2 var(--f-avenir); }
.hslider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 23px; height: 39px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--white); font-size: 34px; line-height: 39px; text-shadow: 0 0 6px rgba(0, 0, 0, .8);
}
.hslider-btn.next { right: 22px; }
.hslider-btn.prev { left: 22px; }
.hslider-btn[hidden] { display: none; }
.wide-link { height: 551px; }

/* ---------- builds / 3D renders ---------- */
.page-title { padding: 28px 0 0 24px; }
.grid { display: grid; grid-template-columns: repeat(3, 304px); gap: 10px; margin: 9px 0 0 23px; width: 933px; }
.grid .tile { height: 321px; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.grid .cap { background: rgba(13, 12, 12, .75); }
.grid .tile.more { display: none; }
.show-more {
  display: block; margin: 2px auto 0; padding: 3px 14px; border: 0; background: none;
  font: 300 15px var(--f-corm); color: var(--white); cursor: pointer;
}
.show-more:hover { text-decoration: underline; }
.masonry { display: flex; gap: 15px; margin: 9px 0 0 23px; width: 933px; align-items: flex-start; }
.masonry-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 15px; }
.masonry .tile { box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.masonry .tile img { height: auto; }

/* ---------- commission ---------- */
.video-section { position: relative; height: 815px; overflow: hidden; background: var(--white); }
.video-section video, .video-section .poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.btn-commission {
  height: 58px; display: flex; align-items: center; justify-content: center;
  background: var(--white); color: #000; text-decoration: none;
  font: 800 13px/1 var(--f-avenir); letter-spacing: .2em; transition: background .2s, color .2s;
  animation: flip-in 1.2s cubic-bezier(.175, .885, .32, 1.275) both;
}
.btn-commission:hover { background: #0d0c0c; color: var(--white); }
@keyframes flip-in {
  from { opacity: 0; transform: perspective(800px) rotateX(-90deg); }
  to { opacity: 1; transform: none; }
}

/* ---------- contact ---------- */
.page-photo { background: #4c4646 url("../images/bg-dark.webp") center top / cover fixed; }
.contact-form label { display: block; font: 300 14px/1.3 var(--f-futura); color: var(--white); margin-bottom: 7px; }
.contact-form label span { color: #ff4040; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; border: 1px solid #ccc; background: var(--white); color: #000;
  font: 300 15px var(--f-futura); padding: 0 13px; border-radius: 0;
}
.contact-form input { height: 33px; }
.contact-form textarea { height: 196px; padding-top: 8px; resize: vertical; }
.contact-form button {
  width: 94px; height: 36px; border: 0; background: #8b8181; color: var(--white);
  font: 300 14px var(--f-futura); cursor: pointer; transition: background .2s;
}
.contact-form button:hover { background: #4c4646; }
.form-note { font: 300 20px/1.4 var(--f-corm); text-align: center; }
.hp { position: absolute; left: -9999px; }

/* ---------- picture viewer ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(13, 12, 12, .94); color: var(--white);
}
.lightbox.open { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb-figure { margin: 0; max-width: calc(100vw - 140px); display: flex; flex-direction: column; align-items: center; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; }
.lb-text { margin-top: 14px; text-align: center; max-width: 720px; }
.lb-title { font: 300 24px/1.3 var(--f-corm); }
.lb-desc { font: 300 16px/1.5 var(--f-corm); white-space: pre-line; color: #ddd; }
.lb-link { display: inline-block; margin-top: 6px; font: 300 15px var(--f-corm); color: var(--tan); }
.lb-btn {
  position: absolute; border: 0; background: none; color: var(--white); cursor: pointer;
  font: 300 44px/1 var(--f-corm); padding: 10px 16px; opacity: .8;
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; font-size: 40px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- fixed Discord button ---------- */
.discord { position: fixed; right: 24px; bottom: 8px; z-index: 40; width: 241px; height: 90px; }
.discord img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.discord .on-hover, .discord .on-press { opacity: 0; }
.discord:hover .on-idle { opacity: 0; }
.discord:hover .on-hover { opacity: 1; }
.discord:active .on-hover { opacity: 0; }
.discord:active .on-press { opacity: 1; }

/* ---------- narrow screens (phones, small tablets) ---------- */
@media (max-width: 999px) {
  .header-inner, .wrap { width: 100%; }
  .logo { left: 16px; }
  .menu-toggle {
    display: block; position: absolute; right: 8px; top: 4px; width: 40px; height: 36px;
    border: 0; background: none; color: var(--white); font-size: 24px; cursor: pointer;
  }
  .site-nav { display: none; position: fixed; left: 0; right: 0; top: var(--header-h); background: var(--drop); padding: 8px 0 14px; }
  .site-nav.open { display: block; }
  .site-nav > ul { display: block; }
  .site-nav > ul > li { width: auto !important; }
  .site-nav a { font-size: 18px; line-height: 2; }
  .site-nav .sub { position: static; transform: none; visibility: visible; opacity: 1; background: none; padding: 0; }
  .site-nav .sub a { font-size: 16px; }

  .abs { position: relative; left: auto; top: auto; width: auto; margin: 0 16px 24px; }
  .wrap.free { height: auto !important; padding: 28px 0 32px; }
  .rt [style*="font-size:60px"], .rt [style*="font-size: 60px"] { font-size: 42px !important; }
  .rt [style*="font-size:56px"], .rt [style*="font-size:48px"] { font-size: 38px !important; }

  .hero { height: 70vh; min-height: 420px; background-attachment: scroll; }
  .hero-creature { width: 240px; height: auto; left: calc(50% - 120px); top: 12%; }
  .strip { height: 300px; }
  .strip-item { height: 282px; }

  .about .wrap { height: auto; }
  .about .abs { text-align: center; }
  .about-icon { width: 180px !important; margin: 0 auto 16px !important; }
  .about .rt p { text-align: center !important; }
  .social { justify-content: center; flex-wrap: wrap; }
  .social a { width: 120px; }

  .patreon-strip { height: auto; background-size: 178% auto; background-position: 9% 0; padding-top: 86%; }
  .patreon-panel { position: relative; left: auto; width: auto; height: auto; padding: 24px 16px; }
  .patreon-panel .abs { margin: 0 auto 16px; max-width: 330px; }
  .patreon-panel a.abs:first-child { width: 143px; }
  .hslider { height: 360px; }
  .hslider .tile { flex-basis: 270px; height: 360px; }
  .wide-link { height: auto; aspect-ratio: 979 / 551; }

  .page-title { padding: 24px 16px 0; }
  .grid { width: auto; margin: 12px 16px 0; grid-template-columns: repeat(2, 1fr); }
  .grid .tile { height: auto; aspect-ratio: 304 / 321; }
  .masonry { width: auto; margin: 12px 16px 0; }

  .video-section { height: 80vh; }
  .commission-btn { position: absolute !important; left: 50% !important; top: 45% !important; width: 208px !important; margin: 0 0 0 -104px !important; }

  .contact-form { margin: 0 16px; }
  .contact-form .abs { margin: 0 0 18px; }
  .lb-figure { max-width: calc(100vw - 24px); }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
  .discord { width: 160px; height: 60px; right: 10px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .masonry { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.shown { opacity: 1; transform: none; transition: none; }
  .btn-commission { animation: none; }
}
