/* ===== FONTS — EDIT HERE =====
   Name + titles font: file in Assets/fonts/ (change the file name in @font-face below)
   Body font: --sans   Small labels: --mono */
@font-face {
  font-family: "NameFont";
  src: url("Assets/fonts/deathcrow.ttf") format("truetype"), url("Assets/fonts/deathcrow.otf") format("opentype");
  font-display: swap
}

:root {
  --name-font: "NameFont", "Grenze Gotisch", serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --fg: #ededed;
  --mute: #808080;
  --line: #222
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

body {
  background: #000;
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer
}

::selection {
  background: #fff;
  color: #000
}

:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 3px
}

.mono {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--mute)
}

/* faint background images */
.bg,
.bg2 {
  position: fixed;
  z-index: -1;
  pointer-events: none
}

.bg {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .14
}

.bg2 {
  top: 0;
  right: 0;
  height: 100vh;
  width: auto;
  max-width: 34vw;
  opacity: .1;
  filter: invert(1);
  mix-blend-mode: screen
}

/* views */
.view {
  display: none;
  min-height: 100svh;
  position: relative
}

.view.active {
  display: block
}

.view.home.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden
}

.corner {
  position: absolute;
  top: 28px;
  line-height: 1.55
}

.tl {
  left: 28px;
  text-align: left
}

.tr {
  right: 28px;
  text-align: right
}

.center {
  position: relative;
  z-index: 2;
  padding: 0 20px
}

h1 {
  font-family: var(--name-font);
  font-weight: 400;
  font-size: clamp(3.6rem, 13vw, 11rem);
  line-height: 1;
  letter-spacing: .01em;
  margin-bottom: 14px
}

.menu {
  display: flex;
  gap: 34px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 44px
}

.menu button {
  font-family: var(--mono);
  font-size: .9rem;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s
}

.menu button:hover {
  border-color: #fff
}

.foot {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  z-index: 2
}

/* tattoo image slots */
.tat {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  max-height: 70vh;
  max-width: 24vw;
  object-fit: contain;
  z-index: 1;
  pointer-events: none
}

.tat.l {
  left: 4vw
}

.tat.r {
  right: 4vw
}

.div {
  display: block;
  margin: 6px 0 40px;
  max-height: 56px;
  max-width: 100%
}

/* social icons */
.social {
  display: flex;
  gap: 22px;
  justify-content: center
}

.social svg {
  width: 22px;
  height: 22px;
  fill: var(--mute);
  transition: fill .2s
}

.social a:hover svg {
  fill: #fff
}

/* inner pages */
.back {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 3
}

.back:hover {
  color: #fff
}

.inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 110px 28px 80px
}

.inner.wide {
  max-width: 1200px
}

h2 {
  font-family: var(--name-font);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 14px
}

.proj {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: center
}

.shot {
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #050505
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1)
}

.proj h3 {
  font-weight: 500;
  font-size: 1.5rem;
  margin: 6px 0 10px
}

.proj p {
  color: #a5a5a5;
  max-width: 44ch
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.g {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  background: #050505;
  overflow: hidden;
  cursor: zoom-in;
  color: inherit;
  padding: 0
}

.g img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .3s
}

.g:hover img {
  filter: none
}

.g .ph {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 10px;
  font-family: var(--mono);
  font-size: .7rem;
  color: #555
}

.g.empty .ph {
  display: grid
}

#lb {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .95);
  display: none;
  place-items: center;
  z-index: 50;
  cursor: zoom-out
}

#lb.on {
  display: grid
}

#lb img {
  max-width: 92vw;
  max-height: 90vh
}

.two {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  align-items: start
}

.two p {
  color: #bcbcbc;
  font-size: 1.05rem;
  max-width: 50ch;
  margin-bottom: 22px
}

dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 6px 0;
  margin: 28px 0
}

dd {
  color: var(--fg)
}

.stack {
  max-width: 50ch
}

.portrait {
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  background: #050505
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1)
}

.center2 {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding-top: 0
}

.center2 h2 {
  max-width: 14ch
}

.mail {
  display: inline-block;
  color: #fff;
  font-size: 1.1rem;
  margin: 22px 0 40px;
  border-bottom: 1px solid #fff
}

@media(max-width:800px) {
  .tat {
    opacity: .5;
    max-width: 34vw
  }

  .proj,
  .two {
    grid-template-columns: 1fr
  }

  .grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .corner {
    display: none
  }

  .bg2 {
    display: none
  }
}

/* ===== MOBILE POLISH — paste at the very bottom of style.css ===== */
@media (max-width: 800px) {

  /* home: tattoos sit above and below the name instead of behind it */
  .tat {
    max-width: 70vw;
    max-height: none;
    height: 22vh;
    opacity: .9;
  }

  .tat.l {
    top: 64px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .tat.r {
    top: auto;
    bottom: 84px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* bring back the small corner text and the faint side art */
  .corner {
    display: block;
    top: 16px;
    font-size: .62rem;
  }

  .tl {
    left: 16px;
  }

  .bg2 {
    display: block;
    max-width: 42vw;
    opacity: .08;
  }

  /* bigger tap targets (fingers need ~44px) */
  .menu {
    gap: 6px 26px;
    margin-top: 34px;
  }

  .menu button {
    padding: 12px 6px;
    font-size: 1rem;
  }

  .back {
    top: 10px;
    left: 10px;
    padding: 12px 14px;
  }

  .social {
    gap: 4px;
  }

  .social a {
    padding: 11px;
  }

  .social svg {
    width: 24px;
    height: 24px;
  }

  /* inner pages: tighter side padding and spacing */
  .inner {
    padding: 78px 20px 56px;
  }

  .grid {
    gap: 10px;
  }

  .proj {
    padding: 28px 0;
    gap: 18px;
  }
}

/* phones/tablets have no hover, so show images in colour instead of staying grey */
@media (hover: none) {

  .shot img,
  .g img,
  .portrait img {
    filter: none;
  }

  .social svg {
    fill: #bdbdbd;
  }
}